Leaf Tags - ml-archive/admin-panel-provider GitHub Wiki

Contents

  1. Forms
  2. AdminLTE Components
  3. Extensions

Forms

form:open(path, method, isFileUpload?)

Opens a form element.


form:close()

Closes a form element.


form:textgroup(fieldsetNode, value, additionalClasses?, additionalAttribs?)

Creates a text type form input group.

text group

Parameters

  • fieldsetNode: the fieldset object that contains the label, value and errors.
  • value: the value to default to if fieldsetNode.value is nil.
  • additionalClassesoptional: a list of classes to append to the input's class.
  • additionalAttribsoptional: a comma-separated list of attributes to append to the input element.

form:emailgroup(fieldsetNode, value, additionalClasses?, additionalAttribs?)

Creates an email type form input group.

email group

Parameters

  • fieldsetNode: the fieldset object that contains the label, value and errors.
  • value: the value to default to if fieldsetNode.value is nil.
  • additionalClassesoptional: a list of classes to append to the input's class.
  • additionalAttribsoptional: a comma-separated list of attributes to append to the input element.

form:passwordgroup(fieldsetNode, value, additionalClasses?, additionalAttribs?)

Creates a password type form input group.

password group

Parameters

  • fieldsetNode: the fieldset object that contains the label, value and errors.
  • value: the value to default to if fieldsetNode.value is nil.
  • additionalClassesoptional: a list of classes to append to the input's class.
  • additionalAttribsoptional: a comma-separated list of attributes to append to the input element.

form:selectgroup(options, fieldsetNode, value, additionalClasses?, additionalAttribs?)

Creates a select type form input group.

select group

Parameters

  • options: an array of options for the select element.
  • fieldsetNode: the fieldset object that contains the label, value and errors.
  • value: the value to default to if fieldsetNode.value is nil.
  • additionalClassesoptional: a list of classes to append to the input's class.
  • additionalAttribsoptional: a comma-separated list of attributes to append to the input element.

form:checkboxgroup(fieldsetNode, value)

Creates a checkbox type form input group.

checkbox group

Parameters

  • fieldsetNode: the fieldset object that contains the label, value and errors.
  • value: the value to default to if fieldsetNode.value is nil.

form:dategroup(fieldsetNode, value)

Creates a date-picker form input group.

date group

date group open

Parameters

  • fieldsetNode: the fieldset object that contains the label, value and errors.
  • value: the value to default to if fieldsetNode.value is nil.

form:colorgroup(fieldsetNode, value)

Creates a color-picker form input group.

color group color group open

Parameters

  • fieldsetNode: the fieldset object that contains the label, value and errors.
  • value: the value to default to if fieldsetNode.value is nil.

form:wysiwyg(fieldsetNode, value)

Creates a WYSIWYG textarea form input group.

WYSIWYG

Parameters

  • fieldsetNode: the fieldset object that contains the label, value and errors.
  • value: the value to default to if fieldsetNode.value is nil.

AdminLTE Components

box(title, boxColor)

Creates a container.

box

solidbox(title, boxColor)

Creates a solid container.

solid box

infobox(title, number, color?, icon?)

Creates an information box.

info box

box:open(title, boxType?, boxColor?)

box:close()

box:body() { <body> }

box:footer() { <body> }

box footer

menu:toggle

menu:footer

Extensions

allow(requiredRole, role)

ifNotEmpty(collection)

⚠️ **GitHub.com Fallback** ⚠️