Bitbybit Docs
    Preparing search index...

    Class CreateCheckboxDto (Inputs.BabylonGui)

    Feeds babylon.gui.checkbox.createCheckbox: the name, starting state, mark size, colors and optional size of a checkbox.

    Index

    Constructors

    • Parameters

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

      Returns CreateCheckboxDto

    Properties

    name: string

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

    checkboxName
    
    isChecked: boolean

    When true, the checkbox starts checked

    false
    
    checkSizeRatio: number

    How much of the square the inner mark fills, from 0 to 1

    0.8
    

    0

    1

    0.05

    color: string

    CSS color of the mark and the border

    #f0cebb
    
    background: string

    CSS color of the square behind the mark

    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