DomTemplate icon indicating copy to clipboard operation
DomTemplate copied to clipboard

Binding options within a select, with existing options already present

Open g105b opened this issue 3 years ago • 0 comments

I would like to be able to supply some hard-coded options in the select element that come after an option with data-template attribute.

For example:

<label>
	<span>Make a payment for</span>
	<select id="product-select" name="product" required data-bind:value="product">
		<option></option>
		<option data-template data-bind:value="id" data-bind:text="nameWithPrice">Product name - £-.--</option>
		<option value="shipping-only">Shipping only</option>
		<option value="other">Other</option>
	</select>
</label>

g105b avatar Aug 10 '22 13:08 g105b