Bitbybit Docs
    Preparing search index...

    Class CreateInputTextDto (Inputs.BabylonGui)

    Feeds babylon.gui.inputText.createInputText: the name, starting text, placeholder, colors and optional size of a text field.

    Index

    Constructors

    • Parameters

      • Optionalname: string
      • Optionalcolor: string
      • Optionalbackground: string
      • Optionalwidth: string | number
      • Optionalheight: string | number

      Returns CreateInputTextDto

    Properties

    name: string

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

    inputName
    
    text: string

    The text the field starts with; empty shows the placeholder

    
    
    placeholder: string

    The hint shown while the field is empty

    
    
    color: string

    CSS color of the typed text

    #f0cebb
    
    background: string

    CSS color behind the text

    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