- Framework7 Tutorial
- Framework7 - Home
- Framework7 - Overview
- Framework7 - Environment
- Framework7 Components
- Framework7 - Layouts
- Framework7 - Navbars
- Framework7 - Toolbars
- Framework7 - Search Bar
- Framework7 - Status Bar
- Framework7 - Side Panels
- Framework7 - Content Block
- Framework7 - Layout Grid
- Framework7 - Overlays
- Framework7 - Preloaders
- Framework7 - Progress Bar
- Framework7 - List Views
- Framework7 - Accordion
- Framework7 - Cards
- Framework7 - Chips
- Framework7 - Buttons
- Framework7 - Action Button
- Framework7 - Forms
- Framework7 - Tabs
- Framework7 - Swiper Slider
- Framework7 - Photo Browser
- Framework7 - Autocomplete
- Framework7 - Picker
- Framework7 - Calendar
- Framework7 - Refresh
- Framework7 - Infinite Scroll
- Framework7 - Messages
- Framework7 - Message Bar
- Framework7 - Notifications
- Framework7 - Lazy Load
- Framework7 Styling
- Framework7 - Color Themes
- Framework7 - Hairlines
- Framework7 Templates
- Framework7 - Templates Overview
- Framework7 - Auto Compilation
- Framework7 - Template7 Pages
- Framework7 Fast Clicks
- Framework7 - Active State
- Framework7 - Tap Hold Event
- Framework7 - Touch Ripple
- Framework7 Useful Resources
- Framework7 - Quick Guide
- Framework7 - Useful Resources
- Framework7 - Discussion
Framework7 - Form Elements
Description
Form elements are used to make good looking form layouts.
Framework7 provides some form elements as specified in the table below −
S.No | Form Element | Structure |
---|---|---|
1 | All text inputs |
<div class = "item-input"> <input type = "password"> </div> |
2 | Select |
<div class = "item-input"> <select>...</select"> </div> |
3 | Textarea |
<div class = "item-input"> <textarea></textarea> </div> |
4 | Resizable Textarea |
<div class = "item-input"> <textarea class = "resizable"></textarea> </div> |
5 | Switch (Checkbox) |
<label class = "label-switch"> <input type = "checkbox"> <div class = "checkbox"></div> </label> |
6 | Slider (Range input) |
<div class = "item-input"> <div class = "range-slider"> <input type = "range" min = "10" max = "50" step = "0.1"> </div> </div> |
We can use form elements in various types as specified in the table below −
S.No | Form Element Type & Description |
---|---|
1 | Full Layout
The full layout type is used to display the whole form element. |
2 | Icons and Inputs
You can use icons along with the input fields in the form layout. |
3 | Labels and Inputs
You can use labels along with the input fields in the form layout. |
4 | Just Inputs
Framework7 allows you to use only input fields with the form elements. |
5 | Inset
You can make the form elements inset by using the inset class. |
framework7_forms.htm
Advertisements