Framework7 Message BarFramework7 Message bar is a resizable toolbar for usage with messages. It provides a special resizable toolbar to work with messaging system in application. Syntax for message bar layout: The place for message bar layout is very important and it should be inside the page and right before message content. Initialize Message bar with JavaScriptYou can use the following method for initializing the message bar with JavaScript: The method has two options: messagesbarContainer: It is a required HTML element or string that includes messagebar container HTML element. parameters: It specifies an object with messagebar parameters. For example: Messagebar ParametermaxHeight: It is used to set maximum height of textarea and will be resized depending on the amount of its text. The type of parameter is number and the default value is null. Messagebar PropertiesThe following table shows the messagebar properties:
Messagebar Methods
Initialize Messagebar with HTMLIf you don't want to use messagebar method and properties, you can initialize it using HTML without JavaScript. You just need to add the messagebar-init class to the .messagebar and you can pass the required parameters using data- attributes. See the following code how to initialize the messagebar with HTML:
Next TopicFramework7 Refresh
|