Buttons

Size
2,051 Kb
Views
32,384

How do I make an buttons?

What is a buttons? How do you make a buttons? This script and codes were developed by Onsen & Monaca on 14 September 2022, Wednesday.

Buttons Previews

Buttons - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Buttons</title> <link rel='stylesheet prefetch' href='https://cdn.rawgit.com/OnsenUI/OnsenUI/2.0.0-alpha.15/build/css/onsenui.css'>
<link rel='stylesheet prefetch' href='https://cdn.rawgit.com/OnsenUI/OnsenUI/2.0.0-alpha.15/build/css/onsen-css-components.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <ons-page> <ons-toolbar> <div class="center">Buttons</div> </ons-toolbar> <h3>Material Buttons</h3> <ons-button modifier="material">Button</ons-button> <ons-button modifier="material" disabled>Button</ons-button> <ons-button modifier="material"> <ons-ripple></ons-ripple> Ripple effect </ons-button> <h3>Flat Design</h3> <div style="text-align: center" class="content-padded" ng-controller="ButtonsController"> <ons-button>Normal</ons-button> <ons-button modifier="light">Light</ons-button> <ons-button modifier="outline">Outline</ons-button> <ons-button modifier="cta">CTA</ons-button> <ons-button modifier="quiet">Quiet</ons-button> <br> <br> <ons-button modifier="large">large</ons-button> <br> <ons-button modifier="large--cta">large--cta</ons-button> <br> <ons-button modifier="large--quiet">large--quiet</ons-button> <br> <ons-button disabled="true">Disabled</ons-button> </div>
</ons-page> <script src='https://cdn.rawgit.com/OnsenUI/OnsenUI/2.0.0-alpha.15/build/js/onsenui.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular.min.js'></script>
<script src='https://cdn.rawgit.com/OnsenUI/OnsenUI/2.0.0-alpha.15/build/js/angular-onsenui.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Buttons - Script Codes CSS Codes

ons-button[modifier="material"] { margin: 4px 0px;
}

Buttons - Script Codes JS Codes

ons.bootstrap() .controller("ButtonsController", function($scope) { $scope.spin1 = false; $scope.spin2 = false; $scope.spin3 = false; $scope.switchSpin1 = function() { $scope.spin1 = ($scope.spin1 == false); } $scope.switchSpin2 = function() { $scope.spin2 = ($scope.spin2 == false); } $scope.switchSpin3 = function() { $scope.spin3 = ($scope.spin3 == false); } });
Buttons - Script Codes
Buttons - Script Codes
Home Page Home
Developer Onsen & Monaca
Username onsen
Uploaded September 14, 2022
Rating 3
Size 2,051 Kb
Views 32,384
Do you need developer help for Buttons?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Onsen & Monaca (onsen) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!