Preskoči na vsebino

Komponente

Vnos datuma

Maskirano polje za vnos datumov brez izbirnika.

Uporaba

Osnovno

HTML
<bs:bsui-date-input placeholder="YYYY-MM-DD" />

Označeno polje

Z oznako in besedilom pomoči, kot je prikazano v pravem obrazcu.

Bookings open the day after this date.
HTML
<bs:bsui-field>
  <bs:bsui-field-label text="Start date" />
  <bs:bsui-date-input name="start_date" placeholder="Pick a start date" />
  <bs:bsui-field-description text="Bookings open the day after this date." />
</bs:bsui-field>

Datumski razpon

Dva vnosa drug ob drugem, vsak pošlje svojo vrednost pod svojim imenom.

HTML
<bs:bsui-stack direction="row" gap="4" align="start">
  <bs:bsui-field>
    <bs:bsui-field-label text="From" />
    <bs:bsui-date-input name="from" placeholder="Check in" />
  </bs:bsui-field>
  <bs:bsui-field>
    <bs:bsui-field-label text="To" />
    <bs:bsui-date-input name="to" placeholder="Check out" />
  </bs:bsui-field>
</bs:bsui-stack>

Onemogočeno

Sprožilec in gumb koledarja se ne odzivata.

HTML
<bs:bsui-date-input placeholder="Locked until renewal" disabled="true" />

Atributi

AtributTipPrivzeto
name text —
placeholder text Pick a date
disabled toggle false
nameAlt text —
onChange text —