Skip to content
COMPONENT / HOSPITALITY

Stay planner.

Arrival, departure and guests passed to a local smart-form page; enquiry only, no availability engine.

PHP + page-layout.css; optional dl-select.js for stay plannerNo build

Preview

Plan your next stay

Choose dates to start your enquiry. Availability is confirmed by the team.

Usage

Load page-layout.css. In the visual editor find Hospitality & highlights. All text is escaped; no executable theme snippets are stored.

  1. Gunakan layout DL yang sudah memuat CSS dan dl.js.
  2. Letakkan kode berikut di view PHP Anda.
  3. Ganti data contoh dengan nilai aplikasi. Teks di-escape otomatis.
PHP view
<?= component('stay-planner', ['title' => 'Plan your next stay', 'href' => '/site']) ?>

API reference

Props PHP yang didukung implementasi DL. Field di dalam array mengikuti bentuk pada kolom Type. Props yang tidak dicantumkan tidak menjadi bagian API komponen.

Stay planner props
PropType / valuesPanduan
titlestringUse the example structure. Values are validated and text escaped.
hrefstringUse the example structure. Values are validated and text escaped.

Behavior & accessibility

Server-rendered text and native semantic controls. Links and buttons retain keyboard focus. Text ribbon pauses on focus and respects reduced motion. Stay planner forwards dates only; the destination form remains responsible for validation.

Uji keyboard, fokus, dan pembaca layar pada halaman aplikasi Anda. Contoh ini tidak menggantikan audit aksesibilitas aplikasi secara menyeluruh.

Source & agent context

Source tersedia di views/components/stay-planner.php. Edit template ini jika membutuhkan perilaku tambahan. API PHP DL berbeda dari API React sumber rujukan.

Terminal
php dl component stay-planner

Component guide · JavaScript & events · Styling

Icons: Solar by 480 Design (CC BY 4.0) & Iconsax (MIT). PHP UI adapted from Coordiation. Logo: DesignLof.