Bitbybit Docs
    Preparing search index...

    Class CreateRadioButtonDto (Inputs.BabylonGui)

    Feeds babylon.gui.radioButton.createRadioButton: the name, group, starting state, dot size, colors and optional size of a radio button.

    Index

    Constructors

    • Parameters

      • Optionalname: string
      • Optionalgroup: string
      • OptionalisChecked: boolean
      • OptionalcheckSizeRatio: number
      • Optionalcolor: string
      • Optionalbackground: string
      • Optionalwidth: string | number
      • Optionalheight: string | number

      Returns CreateRadioButtonDto

    Properties

    name: string

    Name the radio button is known by, which control.getControlByName finds it by

    radioBtnName
    
    group?: string

    Radio buttons sharing a group let only one of them be checked at a time; left out, the button is in the unnamed group

    undefined
    

    true

    isChecked: boolean

    When true, the radio button starts checked

    false
    
    checkSizeRatio: number

    How much of the circle the inner dot fills, from 0 to 1

    0.8
    

    0

    1

    0.05

    color: string

    CSS color of the dot and the border

    #f0cebb
    
    background: string

    CSS color of the circle behind the dot

    black
    
    width?: string | number

    Width, as a pixel string such as 200px or a fraction of the parent from 0 to 1; left out, the engine chooses

    undefined
    

    true

    height?: string | number

    Height, as a pixel string such as 200px or a fraction of the parent from 0 to 1; left out, the engine chooses

    undefined
    

    true