neft
Version:
Universal Platform
22 lines (17 loc) • 500 B
HTML
<import src="input/NativeItem.html" as="NativeItem" />
<import src="input/RandomColor.html" as="RandomColor" />
<script>
const { utils } = Neft;
this.onRender(function () {
this.state.set('enabled', utils.isIOS || utils.isAndroid);
});
</script>
<NativeItem enabled="${state.enabled}">
<input
ref="input"
type="stepper"
n-style:color="${refs.colorInput.state.color}"
/>
</NativeItem>
Value: ${refs.input.style.value}
<RandomColor ref="colorInput" />