namespace \webfiori\ui
class Paragraph
Class Attributes Summary
const ALLOWED_CHILDSClass Methods Summary
public function __construct(string$text)Creates new paragraph node.public function addChild(HTMLNode$node, array|boolean$attrs, array$chainOnParent)Adds new child node.public function addText(string$text, array$options)Appends new text to the body of the paragraph.public function clear()Clears the text of the paragraph.Class Attributes Details
const ALLOWED_CHILDSClass Methods Details
public function __construct(string$text)Creates new paragraph node. Parameters:
- string $text An optional paragraph text.
public function addChild(HTMLNode$node, array|boolean$attrs, array$chainOnParent)Adds new child node. Parameters:
- HTMLNode $node The node that will be added. The paragraph element can only accept the addition of in-line HTML elements.
- array|boolean $attrs Not used if boolean is given. If an array is given, it will act as properties for the newly added node.
- array $chainOnParent Not used.
Returns: ParagraphThe method will always return the same instance at which the method is called on.public function addText(string$text, array$options)Appends new text to the body of the paragraph. Parameters:
- string $text The text that will be added.
- array $options An array that contains a key value pairs of text options. The supported options are:
- bold: Makes the text bold.
- esc-entities: If set to TRUE, HTML entities will be escaped. Default is TRUE.
- italic: Makes the text italic.
- em: Insert the text within 'em' element.
- underline: Adds a line underneath the text.
- overline: Adds a line on the top of the text.
- strikethrough: Adds a line through the text.
- color: Sets the color of the text.
- href:Make the text as a link. The value of this key must be a link.
- new-line: Insert line break after the text.
- is-abbr: NOT USED.
- abbr-title: NOT USED.
- abbr-def: NOT USED.
public function clear()Clears the text of the paragraph. 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