Skip to content

Radio Button

anidivr edited this page Oct 21, 2022 · 2 revisions

Toggle state of a choice. Interact to toggle state of choice.

image

radio-button code

Inputs

Name Type Default Description
checked boolean false When true, button is filled. When false, button is empty
segments number 32 Roundness of button shape. See CircleGeometry
width number 0.1 Width and height of button in meters
enabled boolean true When true, state can be changed. When false, interaction is disabled
buttoncolor string Theme button color (#505050) Input box background color. Set to override theme color
hovercolor string Theme hover color (blue) Color when interaction over button. Set to override theme color
truecolor string Theme true color (lime) Color of input text. Set to override theme color
selectable InteractiveObjects undefined Add to list of objects ray caster can test for overlap
geometry BufferGeoemtry Rounded rectangle shape Override to provide your own geometry
material Material MeshBasicMaterial Override to provide your own material

Outputs

Name Type Description
change number Triggered when number changed. Event contains new number

Examples

<flat-ui-radio-button [checked]="checked" [selectable]="selectable" [enabled]="false" 
     [segments]="8" [rotation]="[0, 0, 22.5 |radian]" (change)="changed($event)">
</flat-ui-radio-button>

Clone this wiki locally