jQuery Collapsible
Collapsible for jQuery and jQuery Mobile
Collapsible for jQuery and jQuery Mobile
Collapsible for jQuery and jQuery Mobile
Learn about Collapsible
Use the collapsible and accordion to make custom panels, form groups and cards collapsible one by one or alternate close & open. Use it to segment long forms and content or use it for progressive disclosure.
Collapsible and accordion demos available for other frameworks.
Viewing demos & code for
Collapsible - Collapsible form group
mobiscroll.settings = {
lang: '',
theme: ''
}
$(function () {
$('#close-all').click(function () {
$('[data-collapsible]').mobiscroll('hide');
});
$('#toggle-first').click(function () {
$('[data-collapsible]').eq(0).mobiscroll('toggle');
});
});
<div mbsc-form>
<div class="mbsc-align-center">
<div class="mbsc-note mbsc-note-primary">Use collapsible groups for segmenting long forms and to hide content.</div>
</div>
<div class="mbsc-btn-group-block">
<button id="toggle-first">Toggle first group</button>
<button id="close-all">Close all groups</button>
</div>
<div class="mbsc-form-group" data-collapsible data-open>
<div class="mbsc-form-group-title">
Contact details
</div>
<div class="mbsc-form-group-content">
<label>
First Name
<input type="text" name="first" placeholder="Your first name">
</label>
<label>
Last Name
<input type="text" name="last" placeholder="Your last name">
</label>
<label>
Company
<input type="text" placeholder="Company if applicable" />
</label>
<label>
Phone
<input type="tel" placeholder="Your phone number" />
</label>
<label>
Email
<input type="email" placeholder="Your email address" name="email">
</label>
</div>
</div>
<div class="mbsc-form-group" data-collapsible>
<div class="mbsc-form-group-title">
Shipping address
</div>
<div class="mbsc-form-group-content">
<label>
Address
<textarea placeholder="Shipping address"></textarea>
</label>
<label>
City
<input type="text" placeholder="City" />
</label>
<label>
State/Region
<input type="text" placeholder="State/Region" />
</label>
<label>
Zip
<input type="text" placeholder="Zip/Postal code" />
</label>
<label>
Country
<select>
<option>Please Select</option>
</select>
</label>
</div>
</div>
<div class="mbsc-form-group" data-collapsible>
<div class="mbsc-form-group-title">
Payment details
</div>
<div class="mbsc-form-group-content">
<label>
Name
<input type="text" placeholder="Name on card" />
</label>
<label>
Card
<input type="text" class="md-card-num" placeholder="Credit card number" />
</label>
<label>
Expiration
<select>
<option>12/2018</option>
<option>01/2019</option>
<option>02/2019</option>
</select>
</label>
<label>
Security
<input type="number" placeholder="3-digit CVV" />
</label>
</div>
</div>
</div>
Collapsible - Accordion
mobiscroll.settings = {
lang: '',
theme: ''
}
$(function () {
$('#close-all').click(function () {
$('[data-collapsible].mbsc-collapsible-open').mobiscroll('hide');
});
$('#toggle-last').click(function () {
$('[data-collapsible]').eq(3).mobiscroll('toggle');
});
});
<div mbsc-form mbsc-accordion>
<div class="mbsc-align-center">
<div class="mbsc-note mbsc-note-primary">Use the accordion on forms to open only one panel at a time.</div>
</div>
<div class="mbsc-btn-group-block">
<button id="toggle-last">Toggle last panel</button>
<button id="close-all">Close all panels</button>
</div>
<div class="mbsc-form-group" data-collapsible data-open>
<div class="mbsc-form-group-title">
What is Mobiscroll?
</div>
<div class="mbsc-form-group-content">
<div class="mbsc-padding">
<p>Mobiscroll UI is a library of components for progressive webapps and hybrid development. Created with a lot of attention to usability and performance. Learn more about mobiscroll and see if it is for you?</p>
</div>
</div>
</div>
<div class="mbsc-form-group" data-collapsible>
<div class="mbsc-form-group-title">
Upgrades
</div>
<div class="mbsc-form-group-content">
<div class="mbsc-padding">
<p>You can start out with a Component license and move to Framework if you need the additional functionality. The same goes for upgrading to the Complete license. The upgrade fee is the price difference between the two tiers.</p>
</div>
</div>
</div>
<div class="mbsc-form-group" data-collapsible>
<div class="mbsc-form-group-title">
Usage
</div>
<div class="mbsc-form-group-content">
<div class="mbsc-padding">
<p>You can use mobiscroll in your responsive or mobile webapps and hybrid apps (like Cordova, Phonegap, Ionic). Mobiscroll is framework agnostic and runs everywhere where Javascript can be executed. However it comes in a couple of flavors
for major Frameworks: Plain Javascript, jQuery and jQuery Mobile, Angular and Angular based frameworks (like Ionic) - both Angular JS and Angular 2+ is supported and React.</p>
</div>
</div>
</div>
<div class="mbsc-form-group" data-collapsible>
<div class="mbsc-form-group-title">
Theme Builder
</div>
<div class="mbsc-form-group-content">
<div class="mbsc-padding">
<p>The Theme Builder is the quickest way to get beautiful and professional looking themes that match your brand and application. We provide a super-easy to use tool where themes can be customized with just a couple of clicks. You can create
your custom themes with a Trial account and download once upgraded to the full product.</p>
</div>
</div>
</div>
</div>
Collapsible - Collapsible cards
<div style="max-width:1100px;margin:0 auto;" mbsc-page> <div class="mbsc-grid">
<div class="mbsc-row mbsc-no-padding">
<div class="mbsc-col-sm-12 mbsc-col-md-4">
<div mbsc-card data-collapsible>
<div class="mbsc-card-header">
<div class="mbsc-card-title">The Blue Dragon</div>
<p class="mbsc-txt-muted">These little dragon-like creatures live in the Indian Pacific Oceans.</p>
</div>
<div class="mbsc-card-content mbsc-no-padding">
<img src="https://img.mobiscroll.com/demos/gridlayout/dragon.jpg" draggable="false">
</div>
</div>
</div>
<div class="mbsc-col-sm-12 mbsc-col-md-4">
<div mbsc-card data-collapsible>
<div class="mbsc-card-header">
<div class="mbsc-card-title">The Maned Wolf</div>
<p class="mbsc-txt-muted">The maned wolf is often found in south, CW, and SE parts of Brazil.</p>
</div>
<div class="mbsc-card-content mbsc-no-padding">
<img src="https://img.mobiscroll.com/demos/gridlayout/wolf.jpg" draggable="false">
</div>
</div>
</div>
<div class="mbsc-col-sm-12 mbsc-col-md-4">
<div mbsc-card data-collapsible>
<div class="mbsc-card-header">
<div class="mbsc-card-title">Japanese Spider Crab</div>
<p class="mbsc-txt-muted">As the name suggestions, it inhabits the waters surrounding Japan.</p>
</div>
<div class="mbsc-card-content mbsc-no-padding">
<img src="https://img.mobiscroll.com/demos/gridlayout/spidercrab.jpg" draggable="false">
</div>
</div>
</div>
</div>
</div>
</div>
Looking for something you didn't see or have a sales question?
Ask us about it, we're here to help.
Component license
Purchase component licenses if you are looking for specific funcionality.
All
Framework license
Get all 36 components, including
Framework license
Get all 36 components, including
- Use it when building with plain and simple JS
- Compatible with vanilla JS app or frameworks like Vue
- Royalty-free commercial usage
- Technical support is included with the license
- Use it with jQuery and jQuery Mobile
- Enjoy the familiar API if you already use jQuery
- Royalty-free commercial usage
- Technical support is included with the license
- Use it with Angular JS and Ionic 1
- For web and mobile apps based on Angular 1.x
- Royalty-free commercial usage
- Technical support is included with the license
- Use it with Angular 2/4/5/6/7 and Ionic 2/3/4
- Visual Studio and VS Code integration
- Royalty-free commercial usage
- Technical support is included with the license
- Use it when building with React JS
- Collection of UI components for web and mobile
- Royalty-free commercial usage
- Technical support is included with the license
Framework license
Select the development framework you are using. Get all 36 components with the license.
- Use it when building with plain and simple JS
- Compatible with vanilla JS app or frameworks like Vue
- Royalty-free commercial usage
- Technical support is included with the license
- Use it with jQuery and jQuery Mobile
- Enjoy the familiar API if you already use jQuery
- Royalty-free commercial usage
- Technical support is included with the license
- Use it with Angular JS and Ionic 1
- For web and mobile apps based on Angular 1.x
- Royalty-free commercial usage
- Technical support is included with the license
- Use it with Angular 2/4/5/6/7 and Ionic 2/3/4
- Visual Studio and VS Code integration
- Royalty-free commercial usage
- Technical support is included with the license
- Use it when building with React JS
- Collection of UI components for web and mobile
- Royalty-free commercial usage
- Technical support is included with the license
Select the framework you are interested in
Use Javascript when building with plain and simple JS.
Use jQuery when you have jQuery already included or if you are building with jQuery Mobile.
Use AngularJS when building with Angular 1.x or Ionic 1.
Use Angular when building with Angular 2/4/5/6/7 or Ionic 2/3/4.
Use it when you are building your app or website with React.
Do you need additional support seats?
The framework license comes with one support seat. ( +$50/seat )
Add the source code?
What framework are you using?
We have to set you up with a trial for this to run 👍
What framework are you using?
Step 1.Install the Mobiscroll CLI from npm
$ npm install -g @mobiscroll/cli
The CLI makes configuring your apps super simple 👍
Step 2.Run the following command in the root folder of your Ionic project
$ mobiscroll config ionic
$ mobiscroll config ionic --lite
You will be prompted to log in with your mobiscroll account. Set your password here
Create an Ionic 3 & Mobiscroll starter with the CLI:
Run this command for Ionic 4 & Mobiscroll starter:
Extract the zip file and run the project like any Ionic app. Make sure to have Ionic CLI installed and open the terminal in the app root folder.
$ npm install
$ ionic serve
Let us know if we can help and enjoy!
Your password has been changed!
Everything is set up so that you can dig in right away and start exploring.
Please extract the zip file and simply open the demos in your favorite browser.
For instructions on how to install Mobiscroll in your project
follow this guide.
Let us know if we can help and enjoy!
Please extract the zip file and run the project like any Angular CLI app.
Make sure to have the Angular CLI installed.
For installation and usage, extract the zip file and open a terminal window and follow these steps.
$ npm install
$ ng serve --open
Let us know if we can help and enjoy! 👍
Everything is set up so that you can dig in right away and start exploring.
We have set up a trial so that you can try the demos locally.
The easiest way to get started is to follow the installation steps and by
grabbing the code directly from the demo page. Let us know if we can help and enjoy!
You'll find a fully functional Kitchen-sink Ionic app in the zip file.
The demos are using Babel's in-browser ES6 and JSX transformer.
Please extract the zip file and open the demos in your browser.
For instructions on how to install Mobiscroll in your project
follow this guide.
Let us know if we can help and enjoy!