![]() |
Onsen UI is an HTML5 framework that allows you to design distinctive and usable user interfaces for free (UI). It also makes UI creation easier, enabling programmers to focus on the core of the product. Onsen UI is a complex set of user interface components designed specifically for mobile apps, with ready-to-use features that follow native iOS and Android design standards. Onsen UI was created with AngularJS in mind, but it can also be used with jQuery or any other framework. Onsen UI is a PhoneGap and Cordova JavaScript Framework. Onsen UI provides the pre-built CSS components for fast designing versatile and appealing user interface layouts. Onsen CSS Components is a web-based Topcoat theme roller for mobile developers that makes creating beautiful UIs easier. Alert Dialog is used to display some warning messages with pop-ups on the webpage. Material Alert Dialog utilizes the various CSS components to create an attractive user interface which helps to enhance the overall user experience. Onsen UI Dialog CSS Component Material Alert Dialog Classes:
Syntax: <div class="alert-dialog-mask alert-dialog-mask--material"></div> <div class="alert-dialog alert-dialog--material"> <div class="alert-dialog-container alert-dialog-container--material"> <div class="alert-dialog-title alert-dialog-title--material"> ... </div> <div class="alert-dialog-content alert-dialog-content--material"> ... </div> <div class="alert-dialog-footer alert-dialog-footer--material"> <button class="alert-dialog-button alert-dialog-button--material"> ... </button> </div> </div> </div> Example 1: The below code example demonstrates an alert dialog as a CSS component. HTML
Output: ![]()
Example 2: The below example demonstrates how we can add other CSS components to the alert dialog. HTML
Output: ![]()
Reference: https://onsen.io/v2/api/css.html#alert-dialog-category |
Reffered: https://www.geeksforgeeks.org
CSS |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 10 |