SPHPlayground API
SPHPlayground
sphplayground sphplayground

HTML FORMS

The HTML <form> tag represents a document section that contains interactive controls to submit information to a web server.

IMPORTANT!

Form components described here are used to build User Interfaces and not to handle the submitted form data!

All built-in HTML form objects implement atleast HtmlForm interface. This interface defines the basic form implementation. Whereas Form is also container for HTML components like Input.

Building HTML forms using FormController and Input components

FormController is the base interface for all functional form content and Input inherits it. Functional form content

All of the following components declare an Input input control for a HtmlForm form.

Basic input components

Framework has many build-in form components that implement basic HTML form elements.

Button components

The Button interface defines buttons for HTML forms.

Note: A <button> can contain text (and other tags. That is not possible with buttons created with the <input> tag.

Output components

The Progress Indicator element

The Progress component implements the <progress> HTML element.

The Progress component displays an indicator showing the completion progress of a task as a progress bar. This component is often used in conjunction with JavaScript to display the progress of a task, but it is not suitable for representing a gauge (e.g. disk space usage or relevance of a query result).

The Meter element (a gauge)

The Meter component implements the <meter> HTML element.

The Meter component represents either a scalar value within a known range or a fractional value. This component should not be used to indicate progress (as in a progress bar).

45%

Sliders and range sliders

All sliders in this namespace implement Sphp\Html\Forms\Inputs\RangeInputInterface interface. These components specify numeric values which must be no less than a given value, and no more than another given value.

A Slider object implements single sliders, whereas RangeSlider component implements double (range) sliders.

These components implement Ion.RangeSlider client side slider element for object oriented PHP. The original Ion.RangeSlider is a jQuery range slider with CSS3 skin support.