WebFioriAPI ReferenceLearnDownloadContributeLearn{{result.parent_page}} > {{result.title}}{{result.title}}Classes{{result.class_name}}{{result.summary}}Methods{{result.name}}{{result.summary}}

namespace \webfiori\ui

class Paragraph

Class Attributes Summary

const ALLOWED_CHILDS

Class 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_CHILDS

Class 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-leftAnchorBrCodeSnippetHTMLDocHTMLListHTMLNodeHTMLTableHeadNodeInputJsCodeLabelListItemOrderedListParagraphRadioGroupTableCellTableRowUnorderedListInvalidNodeNameExceptionTemplateNotFoundExceptionCaseConverterJsonJsonConverterJsonIJsonTypesPropertyAPIFilterAbstractWebServiceManagerInfoServiceParamTypesRequestRequestParameterResponseUriWebServicesManagerAccessAutoLoaderConfigConfigControllerDBEAbstractWebServiceExtendedWebServicesManagerFileLoggerPrivilegePrivilegesGroupThemeThemeLoaderUploadFileUploaderUserUtilWebFioriAppLanguageErrorBoxHTTPCodeViewMessageBoxServerErrViewStarterPageWebPageDatabaseSessionStorageDefaultSessionStorageMSSQLSessionDataTableMSSQLSessionsTableMySQLSessionDataTableMySQLSessionsTableSessionSessionOperationsSessionStorageSessionsManagerRouterRouterUriAbstractMiddlewareMiddlewareManagerEmailMessageSMTPAccountSMTPServerClassLoaderExceptionFileExceptionInitializationExceptionInvalidCRONExprExceptionMissingLangExceptionNoSuchThemeExceptionRoutingExceptionSMTPExceptionSessionExceptionUIExceptionAbstractJobCronCronEmailCronJobJobArgumentCronLoginViewCronTasksViewCronViewCronLoginServiceCronLogoutServiceCronServicesManagerForceCronExecutionServiceGetJobsServiceCLICLICommandInputStreamOutputStreamStdInStdOutClassWriterLangClassWriterQueryClassWriterServiceHolderThemeClassWriterWebServiceWriterCreateCLIClassHelperCreateCronJobCreateMiddlewareCreateTableCreateTableObjCreateThemeHelperCreateWebServiceAddCommandCreateCommandCronCommandHelpCommandListCronCommandListRoutesCommandListThemesCommandRunSQLQueryCommandSettingsCommandTestRouteCommandUpdateSettingsCommandUpdateTableCommandVersionCommandAbstractQueryColumnColumnFactoryConditionConnectionConnectionInfoDatabaseDatabaseExceptionDateTimeValidatorEntityMapperExpressionForeignKeyJoinTableResultSetSelectExpressionTableWhereExpressionMySQLColumnMySQLConnectionMySQLQueryMySQLTableMSSQLColumnMSSQLConnectionMSSQLQueryMSSQLTableAbstractCollectionComparableLinkedListNodeQueueStack
Powered By: WebFiori Framework, Vue and VuetifyAll Rights Reserved © 2018 - 2024