PHP Class Nvd\Crud\Html

Exibir arquivo Open project: engrnvd/laravel-crud-generator Class Usage Examples

Public Methods

Method Description
editable ( $record, $field ) : string
endTag ( $tag )
getInputType ( $field )
getSourceForEnum ( $field )
select ( $name, $options, $attributes = [], $selectedValue = null, $useKeysAsValues = false )
selectRequested ( $name, $options, $attributes = [], $useKeysAsValues = false )
sortableTh ( $fieldName, $route, $label = null )
startTag ( $tag, $attributes = [], $inline = false )

Method Details

editable() public static method

public static editable ( $record, $field ) : string
$record Model
$field
return string

endTag() public static method

public static endTag ( $tag )

getInputType() public static method

public static getInputType ( $field )

getSourceForEnum() public static method

public static getSourceForEnum ( $field )

select() public static method

public static select ( $name, $options, $attributes = [], $selectedValue = null, $useKeysAsValues = false )

selectRequested() public static method

public static selectRequested ( $name, $options, $attributes = [], $useKeysAsValues = false )

sortableTh() public static method

public static sortableTh ( $fieldName, $route, $label = null )

startTag() public static method

public static startTag ( $tag, $attributes = [], $inline = false )