Select_with_rich_content() — svelte Function Reference
Architecture documentation for the Select_with_rich_content() function in index.svelte.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD e6074ef1_91bf_6e1c_3133_0b9e5d55af55["Select_with_rich_content()"] 07e0f03d_9b23_4e8f_9a1b_1c855e67252f["index.svelte.js"] e6074ef1_91bf_6e1c_3133_0b9e5d55af55 -->|defined in| 07e0f03d_9b23_4e8f_9a1b_1c855e67252f aff56d51_5eae_f533_f048_5ce308bf9d60["opt()"] e6074ef1_91bf_6e1c_3133_0b9e5d55af55 -->|calls| aff56d51_5eae_f533_f048_5ce308bf9d60 5390f6ee_8071_3c5e_3454_76c412a876e0["Option()"] e6074ef1_91bf_6e1c_3133_0b9e5d55af55 -->|calls| 5390f6ee_8071_3c5e_3454_76c412a876e0 0f6fe098_4274_f49c_b9d0_a45bdbc3644c["option_snippet()"] e6074ef1_91bf_6e1c_3133_0b9e5d55af55 -->|calls| 0f6fe098_4274_f49c_b9d0_a45bdbc3644c 271f8a1d_caef_0dee_0e43_c79dee4beda9["option_snippet2()"] e6074ef1_91bf_6e1c_3133_0b9e5d55af55 -->|calls| 271f8a1d_caef_0dee_0e43_c79dee4beda9 1b82d56e_51a4_9cb7_aa9d_61df2703ece7["conditional_option()"] e6074ef1_91bf_6e1c_3133_0b9e5d55af55 -->|calls| 1b82d56e_51a4_9cb7_aa9d_61df2703ece7 style e6074ef1_91bf_6e1c_3133_0b9e5d55af55 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/snapshot/samples/select-with-rich-content/_expected/server/index.svelte.js lines 28–233
export default function Select_with_rich_content($$renderer) {
let items = [1, 2, 3];
let show = true;
let html = '<option>From HTML</option>';
$$renderer.push(`<select>`);
$$renderer.option(
{},
($$renderer) => {
$$renderer.push(`<span>Rich</span>`);
},
void 0,
void 0,
void 0,
void 0,
true
);
$$renderer.push(`</select> <select><!--[-->`);
const each_array = $.ensure_array_like(items);
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
let item = each_array[$$index];
$$renderer.option({}, item);
}
$$renderer.push(`<!--]--></select> <select>`);
if (show) {
$$renderer.push('<!--[-->');
$$renderer.option({}, ($$renderer) => {
$$renderer.push(`Visible`);
});
} else {
$$renderer.push('<!--[!-->');
}
$$renderer.push(`<!--]--></select> <select><!---->`);
{
$$renderer.option({}, ($$renderer) => {
$$renderer.push(`Keyed`);
});
}
$$renderer.push(`<!----></select> <select>`);
opt($$renderer);
$$renderer.push(`<!----><!></select> <select><!--[-->`);
const each_array_1 = $.ensure_array_like(items);
for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
let item = each_array_1[$$index_1];
const x = item * 2;
$$renderer.option({}, x);
}
$$renderer.push(`<!--]--></select> <select><optgroup label="Group">`);
$$renderer.option(
{},
($$renderer) => {
$$renderer.push(`<strong>Bold</strong>`);
},
void 0,
void 0,
void 0,
void 0,
true
);
$$renderer.push(`</optgroup></select> <select><optgroup label="Group"><!--[-->`);
const each_array_2 = $.ensure_array_like(items);
for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Select_with_rich_content() do?
Select_with_rich_content() is a function in the svelte codebase, defined in packages/svelte/tests/snapshot/samples/select-with-rich-content/_expected/server/index.svelte.js.
Where is Select_with_rich_content() defined?
Select_with_rich_content() is defined in packages/svelte/tests/snapshot/samples/select-with-rich-content/_expected/server/index.svelte.js at line 28.
What does Select_with_rich_content() call?
Select_with_rich_content() calls 5 function(s): Option, conditional_option, opt, option_snippet, option_snippet2.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free