Home / Function/ get_option_value() — svelte Function Reference

get_option_value() — svelte Function Reference

Architecture documentation for the get_option_value() function in select.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  92afbc52_412a_6f4e_4097_d55790325b3e["get_option_value()"]
  dbe1ea86_6e94_eeeb_a2d1_1db78ca967bc["select.js"]
  92afbc52_412a_6f4e_4097_d55790325b3e -->|defined in| dbe1ea86_6e94_eeeb_a2d1_1db78ca967bc
  35049132_3e86_afd7_a475_924b092a0c2b["select_option()"]
  35049132_3e86_afd7_a475_924b092a0c2b -->|calls| 92afbc52_412a_6f4e_4097_d55790325b3e
  c085d4db_2942_3c89_a472_21c20593b124["bind_select_value()"]
  c085d4db_2942_3c89_a472_21c20593b124 -->|calls| 92afbc52_412a_6f4e_4097_d55790325b3e
  style 92afbc52_412a_6f4e_4097_d55790325b3e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/client/dom/elements/bindings/select.js lines 152–159

function get_option_value(option) {
	// __value only exists if the <option> has a value attribute
	if ('__value' in option) {
		return option.__value;
	} else {
		return option.value;
	}
}

Domain

Subdomains

Frequently Asked Questions

What does get_option_value() do?
get_option_value() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/dom/elements/bindings/select.js.
Where is get_option_value() defined?
get_option_value() is defined in packages/svelte/src/internal/client/dom/elements/bindings/select.js at line 152.
What calls get_option_value()?
get_option_value() is called by 2 function(s): bind_select_value, select_option.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free