namespace \webfiori\ui
class ListItem
Class Methods Summary
public function __construct(string|HTMLNode$listItemBody)Constructs new list itempublic function addList(array$listItems, string$type, array$attrs)Adds a sub list to the body of the list item.Class Methods Details
public function __construct(string|HTMLNode$listItemBody)Constructs new list item Parameters:
- string|HTMLNode $listItemBody An optional body for the list item. It can be a string or an instance of the class HTMLNode. Default is null.
public function addList(array$listItems, string$type, array$attrs)Adds a sub list to the body of the list item. Parameters:
- array $listItems An array that holds all list items which will be in the body of the list. It can contain text items or it can have objects of type 'ListItem'.
- string $type The type of the sub list. It can be 'ul' or 'ol'. Default is 'ul'.
- array $attrs An optional associative array of attributes which will be set for the list.
Returns: ListItemThe method will return the instance at which the method is called on. mdi-menuAll Classesmdi-chevron-left\webfiori\uiAnchorBrCodeSnippetHTMLDocHTMLListHTMLNodeHTMLTableHeadNodeInputJsCodeLabelListItemOrderedListParagraphRadioGroupTableCellTableRowUnorderedList\webfiori\ui\exceptionsInvalidNodeNameExceptionTemplateNotFoundException\webfiori\jsonCaseConverterJsonJsonConverterJsonIJsonTypesProperty\webfiori\httpAPIFilterAbstractWebServiceManagerInfoServiceParamTypesRequestRequestParameterResponseUriWebServicesManager\webfiori\frameworkAccessAutoLoaderConfigConfigControllerDBEAbstractWebServiceExtendedWebServicesManagerFileLoggerPrivilegePrivilegesGroupThemeThemeLoaderUploadFileUploaderUserUtilWebFioriApp\webfiori\framework\i18nLanguage\webfiori\framework\uiErrorBoxHTTPCodeViewMessageBoxServerErrViewStarterPageWebPage\webfiori\framework\sessionDatabaseSessionStorageDefaultSessionStorageMSSQLSessionDataTableMSSQLSessionsTableMySQLSessionDataTableMySQLSessionsTableSessionSessionOperationsSessionStorageSessionsManager\webfiori\framework\routerRouterRouterUri\webfiori\framework\middlewareAbstractMiddlewareMiddlewareManager\webfiori\framework\mailEmailMessageSMTPAccountSMTPServer\webfiori\framework\exceptionsClassLoaderExceptionFileExceptionInitializationExceptionInvalidCRONExprExceptionMissingLangExceptionNoSuchThemeExceptionRoutingExceptionSMTPExceptionSessionExceptionUIException\webfiori\framework\cronAbstractJobCronCronEmailCronJobJobArgument\webfiori\framework\cron\webUICronLoginViewCronTasksViewCronView\webfiori\framework\cron\webServicesCronLoginServiceCronLogoutServiceCronServicesManagerForceCronExecutionServiceGetJobsService\webfiori\framework\cliCLICLICommandInputStreamOutputStreamStdInStdOut\webfiori\framework\cli\writersClassWriterLangClassWriterQueryClassWriterServiceHolderThemeClassWriterWebServiceWriter\webfiori\framework\cli\helpersCreateCLIClassHelperCreateCronJobCreateMiddlewareCreateTableCreateTableObjCreateThemeHelperCreateWebService\webfiori\framework\cli\commandsAddCommandCreateCommandCronCommandHelpCommandListCronCommandListRoutesCommandListThemesCommandRunSQLQueryCommandSettingsCommandTestRouteCommandUpdateSettingsCommandUpdateTableCommandVersionCommand\webfiori\databaseAbstractQueryColumnColumnFactoryConditionConnectionConnectionInfoDatabaseDatabaseExceptionDateTimeValidatorEntityMapperExpressionForeignKeyJoinTableResultSetSelectExpressionTableWhereExpression\webfiori\database\mysqlMySQLColumnMySQLConnectionMySQLQueryMySQLTable\webfiori\database\mssqlMSSQLColumnMSSQLConnectionMSSQLQueryMSSQLTable\webfiori\collectionsAbstractCollectionComparableLinkedListNodeQueueStackLearnmdi-information-variantAPI Referencemdi-information-variantDownloadmdi-information-variantContributemdi-information-variant