helpers\BaseHtml removeCssClass()

removeCssClass() public static method Removes a CSS class from the specified options. public static void removeCssClass ( &$options, $class )$options array The options to be modified. $class string|array The CSS class(es) to be removed

helpers\BaseHtml radioList()

radioList() public static method Generates a list of radio buttons. A radio button list is like a checkbox list, except that it only allows single selection. public static string radioList ( $name, $selection = null, $items = [], $options = [] )$name string The name attribute of each radio button. $selection string|array|null The selected value(s). String for single or array for multiple selection(s). $items array The data item used to generate the radio buttons. The array keys are

helpers\BaseHtml radio()

radio() public static method Generates a radio button input. public static string radio ( $name, $checked = false, $options = [] )$name string The name attribute. $checked boolean Whether the radio button should be checked. $options array The tag options in terms of name-value pairs. See booleanInput() for details about accepted attributes. return string The generated radio button tag

helpers\BaseHtml passwordInput()

passwordInput() public static method Generates a password input field. public static string passwordInput ( $name, $value = null, $options = [] )$name string The name attribute. $value string The value attribute. If it is null, the value attribute will not be generated. $options array The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using encode(). If a value is null, the corresponding attribu

helpers\BaseHtml ol()

ol() public static method Generates an ordered list. public static string ol ( $items, $options = [] )$items array|Traversable The items for generating the list. Each item generates a single list item. Note that items will be automatically HTML encoded if $options['encode'] is not set or true. $options array Options (name => config) for the radio button list. The following options are supported: encode: boolean, whether to HTML-encode the items. Defaults to true. This option is ig

helpers\BaseHtml mailto()

mailto() public static method Generates a mailto hyperlink. public static string mailto ( $text, $email = null, $options = [] )$text string Link body. It will NOT be HTML-encoded. Therefore you can pass in HTML code such as an image tag. If this is coming from end users, you should consider encode() it to prevent XSS attacks. $email string Email address. If this is null, the first parameter (link body) will be treated as the email address and used. $options array The tag options in t

helpers\BaseHtml listBox()

listBox() public static method Generates a list box. public static string listBox ( $name, $selection = null, $items = [], $options = [] )$name string The input name $selection string|array|null The selected value(s). String for single or array for multiple selection(s). $items array The option data items. The array keys are option values, and the array values are the corresponding option labels. The array can also be nested (i.e. some array values are arrays too). For each sub-arr

helpers\BaseHtml label()

label() public static method Generates a label tag. public static string label ( $content, $for = null, $options = [] )$content string Label text. It will NOT be HTML-encoded. Therefore you can pass in HTML code such as an image tag. If this is is coming from end users, you should encode() it to prevent XSS attacks. $for string The ID of the HTML element that this label is associated with. If this is null, the "for" attribute will not be generated. $options array The tag options in t

helpers\BaseHtml jsFile()

jsFile() public static method Generates a script tag that refers to an external JavaScript file. See also yii\helpers\Url::to(). public static string jsFile ( $url, $options = [] )$url string The URL of the external JavaScript file. This parameter will be processed by yii\helpers\Url::to(). $options array The tag options in terms of name-value pairs. The following option is specially handled: condition: specifies the conditional comments for IE, e.g., lt IE 9. When this is specified, t

helpers\BaseHtml input()

input() public static method Generates an input type of the given type. public static string input ( $type, $name = null, $value = null, $options = [] )$type string The type attribute. $name string The name attribute. If it is null, the name attribute will not be generated. $value string The value attribute. If it is null, the value attribute will not be generated. $options array The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting