Listview for Angular JS and Ionic 1
Advanced list view component with gesture, swipe and drag & drop support.
Use it along Mobiscroll forms, pages or in any web or mobile hybrid app. Suited for small to large screens.
Shipping with useful features for a refined UX, including:
- Support for alternating row color
- Use it with single, multi-line text or custom content
- Render cards instead of full-width rows
- Enhance content with images, avatars and icons
- Built-in support for sorting and ordering
- Multiple data-source support
- Load on demand capabilities
- Top positioned sticy header for segmenting the list
- Simple to advanced grouping capabilities
- CRUD with undo functionality
- Full-blown gesture support
- Hierarchical listviews with variable depth
- Multiple theme support
As part of Gesture enabled listview it can be picked up with the Framework and Complete licenses or with the component license.
Listview available for other frameworks.
Viewing demos & code for
Angular JS Listview
Listview for Angular JS and Ionic 1
Listview for Angular JS and Ionic 1
Change the theme setting here
Change the language and localization settings here
Listview - Basic
Listview - Content
Listview - Image/Icon/Avatar
Listview - Selecting items
Listview - Sorting & ordering
Listview - Sticky header
Listview - Grouping
Listview - Create, Read, Update, Delete
Listview - Remove/Undo
Listview - Swipe actions
Listview - Hierarchy
Listview - Checklist
Listview - Filtering
Listview - Data sources
Listview - Load on demand
Listview - Load more
Listview - Master-detail view
Build a two pane master-detail view with the help of the listview. Use the grid layout to set up the two columns - left side for a list of names, right side for showing the details. If you want to get into the details you could even hide the first column and build a drawer or use a hamburger menu for the master list.
Use the navigation component for the tabs and cards for building the layout of the details view.
Listview - Event handlers
EVENTS FIRED:
Listview - Quick Navigation
angular
.module('demoApp', ['mobiscroll-listview', 'mobiscroll-optionlist'])
.controller('demoController', ['$scope', function ($scope) {
var timer,
firstletter,
listview,
currSelected = "A",
start = new Date(),
isScrolled = false,
isFavorite = false,
preventScroll = false,
popup = document.querySelector('.md-popup'),
list = document.getElementById('demo'),
listDeviders = document.querySelectorAll('li[data-role=list-divider]');
function handleScroll() {
if (new Date() - start > 150 && !isFavorite && !preventScroll) {
firstletter = document.elementFromPoint(0, 100).textContent[0];
isScrolled = true;
if (currSelected != firstletter) {
$scope.menustrip.navigate(document.querySelector('.md-item-' + firstletter), true);
}
currSelected = firstletter;
start = new Date();
isScrolled = false;
}
preventScroll = false;
}
$scope.data = [{
"location": "Abilene, TEXAS)",
"iata": "(ABI)",
"startLetter": "A"
}, {
"location": "Agana / Tamuning, GUAM",
"iata": "(GUM)",
"startLetter": "A"
}, {
"location": "Aguadilla, PUERTO RICO",
"iata": "(BQN)",
"startLetter": "A"
}, {
"location": "Akron / Canton, OHIO",
"iata": "(CAK)",
"startLetter": "A"
}, {
"location": "Albany, GEORGIA",
"iata": "(ABY)",
"startLetter": "A"
}, {
"location": "Albany, NEW YORK",
"iata": "(ALB)",
"startLetter": "A"
}, {
"location": "Albuquerque, NEW MEXICO",
"iata": "(ABQ)",
"startLetter": "A"
}, {
"location": "Alexandria, LOUISIANA",
"iata": "(AEX)",
"startLetter": "A"
}, {
"location": "Allentown, PENNSYLVANIA",
"iata": "(ABE)",
"startLetter": "A"
}, {
"location": "Alpena, MICHIGAN",
"iata": "(APN)",
"startLetter": "A"
}, {
"location": "Amarillo, TEXAS",
"iata": "(AMA)",
"startLetter": "A"
}, {
"location": "Appleton, WISCONSIN",
"iata": "(ATW)",
"startLetter": "A"
}, {
"location": "Arcata / Eureka, CALIFORNIA",
"iata": "(ACV)",
"startLetter": "A"
}, {
"location": "Asheville, NORTH CAROLINA",
"iata": "(AVL)",
"startLetter": "A"
}, {
"location": "Aspen, COLORADO",
"iata": "(ASE)",
"startLetter": "A"
}, {
"location": "Atlanta, GEORGIA",
"iata": "(ATL)",
"startLetter": "A"
}, {
"location": "Atlantic City, NEW JERSEY",
"iata": "(ACY)",
"startLetter": "A"
}, {
"location": "Augusta, GEORGIA",
"iata": "(AGS)",
"startLetter": "A"
}, {
"location": "Austin, TEXAS",
"iata": "(AUS)",
"startLetter": "A"
}, {
"location": "Baltimore / Glen Burnie, MARYLAND",
"iata": "(BWI)",
"startLetter": "B"
}, {
"location": "Bangor, MAINE",
"iata": "(BGR)",
"startLetter": "B"
}, {
"location": "Bar Harbor, MAINE",
"iata": "(BHB)",
"startLetter": "B"
}, {
"location": "Baton Rouge, LOUISIANA",
"iata": "(BTR)",
"startLetter": "B"
}, {
"location": "Beaumont / Port Arthur, TEXAS",
"iata": "(BPT)",
"startLetter": "B"
}, {
"location": "Belleville, ILLINOIS",
"iata": "(BLV)",
"startLetter": "B"
}, {
"location": "Bellingham, WASHINGTON",
"iata": "(BLI)",
"startLetter": "B"
}, {
"location": "Bemidji, MINNESOTA",
"iata": "(BJI)",
"startLetter": "B"
}, {
"location": "Billings, MONTANA",
"iata": "(BIL)",
"startLetter": "B"
}, {
"location": "Binghamton, NEW YORK",
"iata": "(BGM)",
"startLetter": "B"
}, {
"location": "Birmingham, ALABAMA",
"iata": "(BHM)",
"startLetter": "B"
}, {
"location": "Bismarck, NORTH DAKOTA",
"iata": "(BIS)",
"startLetter": "B"
}, {
"location": "Bloomington / Normal, ILLINOIS",
"iata": "(BMI)",
"startLetter": "B"
}, {
"location": "Boise, IDAHO",
"iata": "(BOI)",
"startLetter": "B"
}, {
"location": "Boston, MASSACHUSETTS",
"iata": "(BOS)",
"startLetter": "B"
}, {
"location": "Boulder City, NEVADA",
"iata": "(BLD)",
"startLetter": "B"
}, {
"location": "Bozeman, MONTANA",
"iata": "(BZN)",
"startLetter": "B"
}, {
"location": "Brainerd, MINNESOTA",
"iata": "(BRD)",
"startLetter": "B"
}, {
"location": "Bristol / Johnson City / Kingsport, TENNESSEE",
"iata": "(TRI)",
"startLetter": "B"
}, {
"location": "Brownsville, TEXAS",
"iata": "(BRO)",
"startLetter": "B"
}, {
"location": "Brunswick, GEORGIA",
"iata": "(BQK)",
"startLetter": "B"
}, {
"location": "Buffalo, NEW YORK",
"iata": "(BUF)",
"startLetter": "B"
}, {
"location": "Bullhead City, ARIZONA",
"iata": "(IFP)",
"startLetter": "B"
}, {
"location": "Burbank, CALIFORNIA",
"iata": "(BUR)",
"startLetter": "B"
}, {
"location": "Burlington, VERMONT",
"iata": "(BTV)",
"startLetter": "B"
}, {
"location": "Butte, MONTANA",
"iata": "(BTM)",
"startLetter": "B"
}, {
"location": "Carlsbad, CALIFORNIA",
"iata": "(CLD)",
"startLetter": "C"
}, {
"location": "Casper, WYOMING",
"iata": "(CPR)",
"startLetter": "C"
}, {
"location": "Cedar Rapids, IOWA",
"iata": "(CID)",
"startLetter": "C"
}, {
"location": "Champaign / Urbana, ILLINOIS",
"iata": "(CMI)",
"startLetter": "C"
}, {
"location": "Charleston, WEST VIRGINIA",
"iata": "(CRW)",
"startLetter": "C"
}, {
"location": "Charleston, SOUTH CAROLINA",
"iata": "(CHS)",
"startLetter": "C"
}, {
"location": "Charlevoix, MICHIGAN",
"iata": "(CVX)",
"startLetter": "C"
}, {
"location": "Charlotte, NORTH CAROLINA",
"iata": "(CLT)",
"startLetter": "C"
}, {
"location": "Charlotte Amalie, St. Thomas, U.S. VIRGIN ISLANDS",
"iata": "(STT)",
"startLetter": "C"
}, {
"location": "Charlottesville, VIRGINIA",
"iata": "(CHO)",
"startLetter": "C"
}, {
"location": "Chattanooga, TENNESSEE",
"iata": "(CHA)",
"startLetter": "C"
}, {
"location": "Cheyenne, WYOMING",
"iata": "(CYS)",
"startLetter": "C"
}, {
"location": "Chicago, ILLINOIS",
"iata": "(ORD)",
"startLetter": "C"
}, {
"location": "Chicago, ILLINOIS",
"iata": "(MDW)",
"startLetter": "C"
}, {
"location": "Chico, CALIFORNIA",
"iata": "(CIC)",
"startLetter": "C"
}, {
"location": "Christiansted, St. Croix, U.S. VIRGIN ISLANDS",
"iata": "(STX)",
"startLetter": "C"
}, {
"location": "Clarksburg, WEST VIRGINIA",
"iata": "(CKB)",
"startLetter": "C"
}, {
"location": "Cleveland, OHIO",
"iata": "(CLE)",
"startLetter": "C"
}, {
"location": "Cody, WYOMING",
"iata": "(COD)",
"startLetter": "C"
}, {
"location": "College Station, TEXAS",
"iata": "(CLL)",
"startLetter": "C"
}, {
"location": "Colorado Springs, COLORADO",
"iata": "(COS)",
"startLetter": "C"
}, {
"location": "Columbia, MISSOURI",
"iata": "(COU)",
"startLetter": "C"
}, {
"location": "Columbia, SOUTH CAROLINA",
"iata": "(CAE)",
"startLetter": "C"
}, {
"location": "Columbus, OHIO",
"iata": "(LCK)",
"startLetter": "C"
}, {
"location": "Columbus, OHIO",
"iata": "(CMH)",
"startLetter": "C"
}, {
"location": "Columbus, GEORGIA",
"iata": "(CSG)",
"startLetter": "C"
}, {
"location": "Columbus / West Point / Starkville, MISSISSIPPI",
"iata": "(GTR)",
"startLetter": "C"
}, {
"location": "Corpus Christi / Kingsville, TEXAS",
"iata": "(CRP)",
"startLetter": "C"
}, {
"location": "Covington, KENTUCKY",
"iata": "(CVG)",
"startLetter": "C"
}, {
"location": "Crescent City, CALIFORNIA",
"iata": "(CEC)",
"startLetter": "C"
}, {
"location": "Dallas-Fort Worth, TEXAS",
"iata": "(DFW)",
"startLetter": "D"
}, {
"location": "Dayton, OHIO",
"iata": "(DAY)",
"startLetter": "D"
}, {
"location": "Daytona Beach, FLORIDA",
"iata": "(DAB)",
"startLetter": "D"
}, {
"location": "Del Rio, TEXAS",
"iata": "(DRT)",
"startLetter": "D"
}, {
"location": "Denver, COLORADO",
"iata": "(DEN)",
"startLetter": "D"
}, {
"location": "Des Moines, IOWA",
"iata": "(DSM)",
"startLetter": "D"
}, {
"location": "Detroit / Romulus, MICHIGAN",
"iata": "(DTW)",
"startLetter": "D"
}, {
"location": "Dickinson, NORTH DAKOTA",
"iata": "(DIK)",
"startLetter": "D"
}, {
"location": "Dothan, ALABAMA",
"iata": "(DHN)",
"startLetter": "D"
}, {
"location": "Dubuque, IOWA",
"iata": "(DBQ)",
"startLetter": "D"
}, {
"location": "Duluth, MINNESOTA",
"iata": "(DLH)",
"startLetter": "D"
}, {
"location": "Durango, COLORADO",
"iata": "(DRO)",
"startLetter": "D"
}, {
"location": "Eau Claire, WISCONSIN",
"iata": "(EAU)",
"startLetter": "E"
}, {
"location": "El Paso, TEXAS",
"iata": "(ELP)",
"startLetter": "E"
}, {
"location": "Elko, NEVADA",
"iata": "(EKO)",
"startLetter": "E"
}, {
"location": "Elmira / Corning, NEW YORK",
"iata": "(ELM)",
"startLetter": "E"
}, {
"location": "Erie, PENNSYLVANIA",
"iata": "(ERI)",
"startLetter": "E"
}, {
"location": "Escanaba, MICHIGAN",
"iata": "(ESC)",
"startLetter": "E"
}, {
"location": "Eugene, OREGON",
"iata": "(EUG)",
"startLetter": "E"
}, {
"location": "Evansville, INDIANA",
"iata": "(EVV)",
"startLetter": "E"
}, {
"location": "Farmington, NEW MEXICO",
"iata": "(FMN)",
"startLetter": "F"
}, {
"location": "Fayetteville, NORTH CAROLINA",
"iata": "(FAY)",
"startLetter": "F"
}, {
"location": "Fayetteville, ARKANSAS",
"iata": "(XNA)",
"startLetter": "F"
}, {
"location": "Flagstaff, ARIZONA",
"iata": "(FLG)",
"startLetter": "F"
}, {
"location": "Flint, MICHIGAN",
"iata": "(FNT)",
"startLetter": "F"
}, {
"location": "Florence, SOUTH CAROLINA",
"iata": "(FLO)",
"startLetter": "F"
}, {
"location": "Fort Hood / Killeen / Temple, TEXAS",
"iata": "(GRK)",
"startLetter": "F"
}, {
"location": "Fort Lauderdale, FLORIDA",
"iata": "(FLL)",
"startLetter": "F"
}, {
"location": "Fort Myers, FLORIDA",
"iata": "(RSW)",
"startLetter": "F"
}, {
"location": "Fort Smith, ARKANSAS",
"iata": "(FSM)",
"startLetter": "F"
}, {
"location": "Fort Wayne, INDIANA",
"iata": "(FWA)",
"startLetter": "F"
}, {
"location": "Fresno, CALIFORNIA",
"iata": "(FAT)",
"startLetter": "F"
}, {
"location": "Friday Harbor, WASHINGTON",
"iata": "(FRD)",
"startLetter": "F"
}, {
"location": "Garden City, KANSAS",
"iata": "(GCK)",
"startLetter": "G"
}, {
"location": "Gillette, WYOMING",
"iata": "(GCC)",
"startLetter": "G"
}, {
"location": "Grand Canyon / Tusayan, ARIZONA",
"iata": "(GCN)",
"startLetter": "G"
}, {
"location": "Grand Forks, NORTH DAKOTA",
"iata": "(GFK)",
"startLetter": "G"
}, {
"location": "Grand Island, NEBRASKA",
"iata": "(GRI)",
"startLetter": "G"
}, {
"location": "Grand Junction, COLORADO",
"iata": "(GJT)",
"startLetter": "G"
}, {
"location": "Grand Rapids, MICHIGAN",
"iata": "(GRR)",
"startLetter": "G"
}, {
"location": "Great Falls, MONTANA",
"iata": "(GTF)",
"startLetter": "G"
}, {
"location": "Green Bay, WISCONSIN",
"iata": "(GRB)",
"startLetter": "G"
}, {
"location": "Greensboro, NORTH CAROLINA",
"iata": "(GSO)",
"startLetter": "G"
}, {
"location": "Greenville, NORTH CAROLINA",
"iata": "(PGV)",
"startLetter": "G"
}, {
"location": "Greer, SOUTH CAROLINA",
"iata": "(GSP)",
"startLetter": "G"
}, {
"location": "Gulfport / Biloxi, MISSISSIPPI",
"iata": "(GPT)",
"startLetter": "G"
}, {
"location": "Gunnison, COLORADO",
"iata": "(GUC)",
"startLetter": "G"
}, {
"location": "Hailey, IDAHO",
"iata": "(SUN)",
"startLetter": "H"
}, {
"location": "Hancock / Calumet, MICHIGAN",
"iata": "(CMX)",
"startLetter": "H"
}, {
"location": "Harlingen, TEXAS",
"iata": "(HRL)",
"startLetter": "H"
}, {
"location": "Harrisburg / Middletown, PENNSYLVANIA",
"iata": "(MDT)",
"startLetter": "H"
}, {
"location": "Hartford, CONNECTICUT",
"iata": "(BDL)",
"startLetter": "H"
}, {
"location": "Hattiesburg / Laurel, MISSISSIPPI",
"iata": "(PIB)",
"startLetter": "H"
}, {
"location": "Hayden, COLORADO",
"iata": "(HDN)",
"startLetter": "H"
}, {
"location": "Helena, MONTANA",
"iata": "(HLN)",
"startLetter": "H"
}, {
"location": "Hibbing, MINNESOTA",
"iata": "(HIB)",
"startLetter": "H"
}, {
"location": "Hilo, HAWAII",
"iata": "(ITO)",
"startLetter": "H"
}, {
"location": "Hilton Head Island, SOUTH CAROLINA",
"iata": "(HHH)",
"startLetter": "H"
}, {
"location": "Hobbs, NEW MEXICO",
"iata": "(HOB)",
"startLetter": "H"
}, {
"location": "Honolulu, HAWAII",
"iata": "(HNL)",
"startLetter": "H"
}, {
"location": "Houston, TEXAS",
"iata": "(HOU)",
"startLetter": "H"
}, {
"location": "Houston, TEXAS",
"iata": "(IAH)",
"startLetter": "H"
}, {
"location": "Huntington, WEST VIRGINIA",
"iata": "(HTS)",
"startLetter": "H"
}, {
"location": "Huntsville, ALABAMA",
"iata": "(HSV)",
"startLetter": "H"
}, {
"location": "Hyannis, MASSACHUSETTS",
"iata": "(HYA)",
"startLetter": "H"
}, {
"location": "Idaho Falls, IDAHO",
"iata": "(IDA)",
"startLetter": "I"
}, {
"location": "Indianapolis, INDIANA",
"iata": "(IND)",
"startLetter": "I"
}, {
"location": "International Falls, MINNESOTA",
"iata": "(INL)",
"startLetter": "I"
}, {
"location": "Iron Mountain / Kingsford, MICHIGAN",
"iata": "(IMT)",
"startLetter": "I"
}, {
"location": "Islip, NEW YORK",
"iata": "(ISP)",
"startLetter": "I"
}, {
"location": "Ithaca, NEW YORK",
"iata": "(ITH)",
"startLetter": "I"
}, {
"location": "Jackson, MISSISSIPPI",
"iata": "(JAN)",
"startLetter": "J"
}, {
"location": "Jacksonville, NORTH CAROLINA",
"iata": "(OAJ)",
"startLetter": "J"
}, {
"location": "Jacksonville, FLORIDA",
"iata": "(JAX)",
"startLetter": "J"
}, {
"location": "Joplin, MISSOURI",
"iata": "(JLN)",
"startLetter": "J"
}, {
"location": "Kailua/Kona, HAWAII",
"iata": "(KOA)",
"startLetter": "K"
}, {
"location": "Kalamazoo / Battle Creek, MICHIGAN",
"iata": "(AZO)",
"startLetter": "K"
}, {
"location": "Kalispell, MONTANA",
"iata": "(FCA)",
"startLetter": "K"
}, {
"location": "Kansas City, MISSOURI",
"iata": "(MCI)",
"startLetter": "K"
}, {
"location": "Kaunakakai, HAWAII",
"iata": "(MKK)",
"startLetter": "K"
}, {
"location": "Kearney, NEBRASKA",
"iata": "(EAR)",
"startLetter": "K"
}, {
"location": "Key West, FLORIDA",
"iata": "(EYW)",
"startLetter": "K"
}, {
"location": "Klamath Falls, OREGON",
"iata": "(LMT)",
"startLetter": "K"
}, {
"location": "Knoxville, TENNESSEE",
"iata": "(TYS)",
"startLetter": "K"
}, {
"location": "Lafayette, LOUISIANA",
"iata": "(LFT)",
"startLetter": "L"
}, {
"location": "Lake Charles, LOUISIANA",
"iata": "(LCH)",
"startLetter": "L"
}, {
"location": "Lanai City (Lānaʻi City), HAWAII",
"iata": "(LNY)",
"startLetter": "L"
}, {
"location": "Lansing, MICHIGAN",
"iata": "(LAN)",
"startLetter": "L"
}, {
"location": "Laramie, WYOMING",
"iata": "(LAR)",
"startLetter": "L"
}, {
"location": "Laredo, TEXAS",
"iata": "(LRD)",
"startLetter": "L"
}, {
"location": "Las Vegas, NEVADA",
"iata": "(LAS)",
"startLetter": "L"
}, {
"location": "Latrobe, PENNSYLVANIA",
"iata": "(LBE)",
"startLetter": "L"
}, {
"location": "Lawton, OKLAHOMA",
"iata": "(LAW)",
"startLetter": "L"
}, {
"location": "Lebanon, NEW HAMPSHIRE",
"iata": "(LEB)",
"startLetter": "L"
}, {
"location": "Lewisburg, WEST VIRGINIA",
"iata": "(LWB)",
"startLetter": "L"
}, {
"location": "Lewiston, IDAHO",
"iata": "(LWS)",
"startLetter": "L"
}, {
"location": "Lexington, KENTUCKY",
"iata": "(LEX)",
"startLetter": "L"
}, {
"location": "Lihue (Līhuʻe), HAWAII",
"iata": "(LIH)",
"startLetter": "L"
}, {
"location": "Lincoln, NEBRASKA",
"iata": "(LNK)",
"startLetter": "L"
}, {
"location": "Little Rock, ARKANSAS",
"iata": "(LIT)",
"startLetter": "L"
}, {
"location": "Long Beach, CALIFORNIA",
"iata": "(LGB)",
"startLetter": "L"
}, {
"location": "Longview, TEXAS",
"iata": "(GGG)",
"startLetter": "L"
}, {
"location": "Los Angeles, CALIFORNIA",
"iata": "(LAX)",
"startLetter": "L"
}, {
"location": "Louisville, KENTUCKY",
"iata": "(SDF)",
"startLetter": "L"
}, {
"location": "Lubbock, TEXAS",
"iata": "(LBB)",
"startLetter": "L"
}, {
"location": "Lynchburg, VIRGINIA",
"iata": "(LYH)",
"startLetter": "L"
}, {
"location": "Mammoth Lakes, CALIFORNIA",
"iata": "(MMH)",
"startLetter": "M"
}, {
"location": "Manchester, NEW HAMPSHIRE",
"iata": "(MHT)",
"startLetter": "M"
}, {
"location": "Manhattan, KANSAS",
"iata": "(MHK)",
"startLetter": "M"
}, {
"location": "Marion, ILLINOIS",
"iata": "(MWA)",
"startLetter": "M"
}, {
"location": "Marquette / Gwinn, MICHIGAN",
"iata": "(MQT)",
"startLetter": "M"
}, {
"location": "McAllen, TEXAS",
"iata": "(MFE)",
"startLetter": "M"
}, {
"location": "Medford, OREGON",
"iata": "(MFR)",
"startLetter": "M"
}, {
"location": "Melbourne, FLORIDA",
"iata": "(MLB)",
"startLetter": "M"
}, {
"location": "Memphis, TENNESSEE",
"iata": "(MEM)",
"startLetter": "M"
}, {
"location": "Mesa, ARIZONA",
"iata": "(AZA)",
"startLetter": "M"
}, {
"location": "Miami, FLORIDA",
"iata": "(MIA)",
"startLetter": "M"
}, {
"location": "Midland, TEXAS",
"iata": "(MAF)",
"startLetter": "M"
}, {
"location": "Milwaukee, WISCONSIN",
"iata": "(MKE)",
"startLetter": "M"
}, {
"location": "Minneapolis, MINNESOTA",
"iata": "(MSP)",
"startLetter": "M"
}, {
"location": "Minot, NORTH DAKOTA",
"iata": "(MOT)",
"startLetter": "M"
}, {
"location": "Missoula, MONTANA",
"iata": "(MSO)",
"startLetter": "M"
}, {
"location": "Mobile, ALABAMA",
"iata": "(MOB)",
"startLetter": "M"
}, {
"location": "Modesto, CALIFORNIA",
"iata": "(MOD)",
"startLetter": "M"
}, {
"location": "Moline, ILLINOIS",
"iata": "(MLI)",
"startLetter": "M"
}, {
"location": "Monroe, LOUISIANA",
"iata": "(MLU)",
"startLetter": "M"
}, {
"location": "Monterey, CALIFORNIA",
"iata": "(MRY)",
"startLetter": "M"
}, {
"location": "Montgomery, ALABAMA",
"iata": "(MGM)",
"startLetter": "M"
}, {
"location": "Montrose, COLORADO",
"iata": "(MTJ)",
"startLetter": "M"
}, {
"location": "Morgantown, WEST VIRGINIA",
"iata": "(MGW)",
"startLetter": "M"
}, {
"location": "Muskegon, MICHIGAN",
"iata": "(MKG)",
"startLetter": "M"
}, {
"location": "Myrtle Beach, SOUTH CAROLINA",
"iata": "(MYR)",
"startLetter": "M"
}, {
"location": "Nashville, TENNESSEE",
"iata": "(BNA)",
"startLetter": "N"
}, {
"location": "New Bedford, MASSACHUSETTS",
"iata": "(EWB)",
"startLetter": "N"
}, {
"location": "New Bern, NORTH CAROLINA",
"iata": "(EWN)",
"startLetter": "N"
}, {
"location": "New Haven, CONNECTICUT",
"iata": "(HVN)",
"startLetter": "N"
}, {
"location": "New Orleans, LOUISIANA",
"iata": "(MSY)",
"startLetter": "N"
}, {
"location": "New York, NEW YORK",
"iata": "(LGA)",
"startLetter": "N"
}, {
"location": "New York, NEW YORK",
"iata": "(JFK)",
"startLetter": "N"
}, {
"location": "Newark, NEW JERSEY",
"iata": "(EWR)",
"startLetter": "N"
}, {
"location": "Newburgh, NEW YORK",
"iata": "(SWF)",
"startLetter": "N"
}, {
"location": "Newport News, VIRGINIA",
"iata": "(PHF)",
"startLetter": "N"
}, {
"location": "Niagara Falls, NEW YORK",
"iata": "(IAG)",
"startLetter": "N"
}, {
"location": "Norfolk, VIRGINIA",
"iata": "(ORF)",
"startLetter": "N"
}, {
"location": "North Bend, OREGON",
"iata": "(OTH)",
"startLetter": "N"
}, {
"location": "Obyan, Saipan Island, NORTHERN MARIANAS",
"iata": "(SPN)",
"startLetter": "O"
}, {
"location": "Oklahoma City, OKLAHOMA",
"iata": "(OKC)",
"startLetter": "O"
}, {
"location": "Omaha, NEBRASKA",
"iata": "(OMA)",
"startLetter": "O"
}, {
"location": "Ontario, CALIFORNIA",
"iata": "(ONT)",
"startLetter": "O"
}, {
"location": "Orlando, FLORIDA",
"iata": "(MCO)",
"startLetter": "O"
}, {
"location": "Orlando/Sanford, FLORIDA",
"iata": "(SFB)",
"startLetter": "O"
}, {
"location": "Owensboro, KENTUCKY",
"iata": "(OWB)",
"startLetter": "O"
}, {
"location": "Page, ARIZONA",
"iata": "(PGA)",
"startLetter": "P"
}, {
"location": "Pago Pago, Tutuila, AMERICAN SAMOA",
"iata": "(PPG)",
"startLetter": "P"
}, {
"location": "Palm Springs, CALIFORNIA",
"iata": "(PSP)",
"startLetter": "P"
}, {
"location": "Panama City Beach, FLORIDA",
"iata": "(ECP)",
"startLetter": "P"
}, {
"location": "Pasco, WASHINGTON",
"iata": "(PSC)",
"startLetter": "P"
}, {
"location": "Peach Springs, ARIZONA",
"iata": "(GCW)",
"startLetter": "P"
}, {
"location": "Pellston, MICHIGAN",
"iata": "(PLN)",
"startLetter": "P"
}, {
"location": "Pensacola, FLORIDA",
"iata": "(PNS)",
"startLetter": "P"
}, {
"location": "Peoria, ILLINOIS",
"iata": "(PIA)",
"startLetter": "P"
}, {
"location": "Philadelphia, PENNSYLVANIA",
"iata": "(PHL)",
"startLetter": "P"
}, {
"location": "Phoenix, ARIZONA",
"iata": "(PHX)",
"startLetter": "P"
}, {
"location": "Pierre, SOUTH DAKOTA",
"iata": "(PIR)",
"startLetter": "P"
}, {
"location": "Pittsburgh, PENNSYLVANIA",
"iata": "(PIT)",
"startLetter": "P"
}, {
"location": "Plattsburgh, NEW YORK",
"iata": "(PBG)",
"startLetter": "P"
}, {
"location": "Pocatello / Arbon Valley, IDAHO",
"iata": "(PIH)",
"startLetter": "P"
}, {
"location": "Ponce, PUERTO RICO",
"iata": "(PSE)",
"startLetter": "P"
}, {
"location": "Port Angeles, WASHINGTON",
"iata": "(CLM)",
"startLetter": "P"
}, {
"location": "Portland, OREGON",
"iata": "(PDX)",
"startLetter": "P"
}, {
"location": "Portland, MAINE",
"iata": "(PWM)",
"startLetter": "P"
}, {
"location": "Presque Isle, MAINE",
"iata": "(PQI)",
"startLetter": "P"
}, {
"location": "Providence / Warwick, RHODE ISLAND",
"iata": "(PVD)",
"startLetter": "P"
}, {
"location": "Provincetown, MASSACHUSETTS",
"iata": "(PVC)",
"startLetter": "P"
}, {
"location": "Provo, UTAH",
"iata": "(PVU)",
"startLetter": "P"
}, {
"location": "Pullman / Moscow, Idaho, WASHINGTON",
"iata": "(PUW)",
"startLetter": "P"
}, {
"location": "Punta Gorda, FLORIDA",
"iata": "(PGD)",
"startLetter": "P"
}, {
"location": "Rapid City, SOUTH DAKOTA",
"iata": "(RAP)",
"startLetter": "R"
}, {
"location": "Redding, CALIFORNIA",
"iata": "(RDD)",
"startLetter": "R"
}, {
"location": "Redmond, OREGON",
"iata": "(RDM)",
"startLetter": "R"
}, {
"location": "Reno, NEVADA",
"iata": "(RNO)",
"startLetter": "R"
}, {
"location": "Rhinelander, WISCONSIN",
"iata": "(RHI)",
"startLetter": "R"
}, {
"location": "Richmond, VIRGINIA",
"iata": "(RIC)",
"startLetter": "R"
}, {
"location": "Riverton, WYOMING",
"iata": "(RIW)",
"startLetter": "R"
}, {
"location": "Roanoke, VIRGINIA",
"iata": "(ROA)",
"startLetter": "R"
}, {
"location": "Rochester, MINNESOTA",
"iata": "(RST)",
"startLetter": "R"
}, {
"location": "Rochester, NEW YORK",
"iata": "(ROC)",
"startLetter": "R"
}, {
"location": "Rock Springs, WYOMING",
"iata": "(RKS)",
"startLetter": "R"
}, {
"location": "Rockford, ILLINOIS",
"iata": "(RFD)",
"startLetter": "R"
}, {
"location": "Rockland, MAINE",
"iata": "(RKD)",
"startLetter": "R"
}, {
"location": "Roswell, NEW MEXICO",
"iata": "(ROW)",
"startLetter": "R"
}, {
"location": "Rota Island, NORTHERN MARIANAS",
"iata": "(ROP)",
"startLetter": "R"
}, {
"location": "Saginaw, MICHIGAN",
"iata": "(MBS)",
"startLetter": "S"
}, {
"location": "Salisbury, MARYLAND",
"iata": "(SBY)",
"startLetter": "S"
}, {
"location": "Salt Lake City, UTAH",
"iata": "(SLC)",
"startLetter": "S"
}, {
"location": "San Angelo, TEXAS",
"iata": "(SJT)",
"startLetter": "S"
}, {
"location": "San Antonio, TEXAS",
"iata": "(SAT)",
"startLetter": "S"
}, {
"location": "San Diego, CALIFORNIA",
"iata": "(SAN)",
"startLetter": "S"
}, {
"location": "San Francisco, CALIFORNIA",
"iata": "(SFO)",
"startLetter": "S"
}, {
"location": "San Jose, CALIFORNIA",
"iata": "(SJC)",
"startLetter": "S"
}, {
"location": "San Juan / Carolina, PUERTO RICO",
"iata": "(SJU)",
"startLetter": "S"
}, {
"location": "San Juan / Miramar, PUERTO RICO",
"iata": "(SIG)",
"startLetter": "S"
}, {
"location": "San Luis Obispo, CALIFORNIA",
"iata": "(SBP)",
"startLetter": "S"
}, {
"location": "Santa Ana, CALIFORNIA",
"iata": "(SNA)",
"startLetter": "S"
}, {
"location": "Santa Barbara, CALIFORNIA",
"iata": "(SBA)",
"startLetter": "S"
}, {
"location": "Santa Fe, NEW MEXICO",
"iata": "(SAF)",
"startLetter": "S"
}, {
"location": "Santa Maria, CALIFORNIA",
"iata": "(SMX)",
"startLetter": "S"
}, {
"location": "Santa Rosa, CALIFORNIA",
"iata": "(STS)",
"startLetter": "S"
}, {
"location": "Sarasota / Bradenton, FLORIDA",
"iata": "(SRQ)",
"startLetter": "S"
}, {
"location": "Sault Ste. Marie, MICHIGAN",
"iata": "(CIU)",
"startLetter": "S"
}, {
"location": "Savannah, GEORGIA",
"iata": "(SAV)",
"startLetter": "S"
}, {
"location": "Scottsbluff, NEBRASKA",
"iata": "(BFF)",
"startLetter": "S"
}, {
"location": "Seattle, WASHINGTON",
"iata": "(BFI)",
"startLetter": "S"
}, {
"location": "Seattle / Tacoma (SeaTac), WASHINGTON",
"iata": "(SEA)",
"startLetter": "S"
}, {
"location": "Sheridan, WYOMING",
"iata": "(SHR)",
"startLetter": "S"
}, {
"location": "Shreveport, LOUISIANA",
"iata": "(SHV)",
"startLetter": "S"
}, {
"location": "Sioux City, IOWA",
"iata": "(SUX)",
"startLetter": "S"
}, {
"location": "Sioux Falls, SOUTH DAKOTA",
"iata": "(FSD)",
"startLetter": "S"
}, {
"location": "South Bend, INDIANA",
"iata": "(SBN)",
"startLetter": "S"
}, {
"location": "Spokane, WASHINGTON",
"iata": "(GEG)",
"startLetter": "S"
}, {
"location": "Springfield, ILLINOIS",
"iata": "(SPI)",
"startLetter": "S"
}, {
"location": "Springfield, MISSOURI",
"iata": "(SGF)",
"startLetter": "S"
}, {
"location": "St. Augustine, FLORIDA",
"iata": "(UST)",
"startLetter": "S"
}, {
"location": "St. Cloud, MINNESOTA",
"iata": "(STC)",
"startLetter": "S"
}, {
"location": "St. George / Beaver, UTAH",
"iata": "(SGU)",
"startLetter": "S"
}, {
"location": "St. Louis, MISSOURI",
"iata": "(STL)",
"startLetter": "S"
}, {
"location": "St. Petersburg/Clearwater, FLORIDA",
"iata": "(PIE)",
"startLetter": "S"
}, {
"location": "State College, PENNSYLVANIA",
"iata": "(SCE)",
"startLetter": "S"
}, {
"location": "Staunton / Waynesboro / Harrisonburg, VIRGINIA",
"iata": "(SHD)",
"startLetter": "S"
}, {
"location": "Stockton, CALIFORNIA",
"iata": "(SCK)",
"startLetter": "S"
}, {
"location": "Syracuse, NEW YORK",
"iata": "(SYR)",
"startLetter": "S"
}, {
"location": "Tampa, FLORIDA",
"iata": "(TPA)",
"startLetter": "T"
}, {
"location": "Texarkana, ARKANSAS",
"iata": "(TXK)",
"startLetter": "T"
}, {
"location": "Toledo, OHIO",
"iata": "(TOL)",
"startLetter": "T"
}, {
"location": "Traverse City, MICHIGAN",
"iata": "(TVC)",
"startLetter": "T"
}, {
"location": "Trenton, NEW JERSEY",
"iata": "(TTN)",
"startLetter": "T"
}, {
"location": "Tucson, ARIZONA",
"iata": "(TUS)",
"startLetter": "T"
}, {
"location": "Tulsa, OKLAHOMA",
"iata": "(TUL)",
"startLetter": "T"
}, {
"location": "Twin Falls, IDAHO",
"iata": "(TWF)",
"startLetter": "T"
}, {
"location": "Tyler, TEXAS",
"iata": "(TYR)",
"startLetter": "T"
}, {
"location": "Valparaiso, FLORIDA",
"iata": "(VPS)",
"startLetter": "V"
}, {
"location": "Vieques, PUERTO RICO",
"iata": "(VQS)",
"startLetter": "V"
}, {
"location": "Vineyard Haven, MASSACHUSETTS",
"iata": "(MVY)",
"startLetter": "V"
}, {
"location": "Walla Walla, WASHINGTON",
"iata": "(ALW)",
"startLetter": "W"
}, {
"location": "Washington, D.C. / Arlington County, VIRGINIA",
"iata": "(DCA)",
"startLetter": "W"
}, {
"location": "Washington, D.C. / Dulles / Chantilly, VIRGINIA",
"iata": "(IAD)",
"startLetter": "W"
}, {
"location": "Waterloo, IOWA",
"iata": "(ALO)",
"startLetter": "W"
}, {
"location": "Watertown, NEW YORK",
"iata": "(ART)",
"startLetter": "W"
}, {
"location": "Wausau, WISCONSIN",
"iata": "(CWA)",
"startLetter": "W"
}, {
"location": "Wenatchee, WASHINGTON",
"iata": "(EAT)",
"startLetter": "W"
}, {
"location": "Wendover, UTAH",
"iata": "(ENV)",
"startLetter": "W"
}, {
"location": "West Palm Beach, FLORIDA",
"iata": "(PBI)",
"startLetter": "W"
}, {
"location": "Westerly, RHODE ISLAND",
"iata": "(WST)",
"startLetter": "W"
}, {
"location": "White Plains, NEW YORK",
"iata": "(HPN)",
"startLetter": "W"
}, {
"location": "Wichita, KANSAS",
"iata": "(ICT)",
"startLetter": "W"
}, {
"location": "Wichita Falls, TEXAS",
"iata": "(SPS)",
"startLetter": "W"
}, {
"location": "Wilkes-Barre / Scranton, PENNSYLVANIA",
"iata": "(AVP)",
"startLetter": "W"
}, {
"location": "Williamsport, PENNSYLVANIA",
"iata": "(IPT)",
"startLetter": "W"
}, {
"location": "Williston, NORTH DAKOTA",
"iata": "(ISN)",
"startLetter": "W"
}, {
"location": "Wilmington, NORTH CAROLINA",
"iata": "(ILM)",
"startLetter": "W"
}, {
"location": "Youngstown / Warren, OHIO",
"iata": "(YNG)",
"startLetter": "Y"
}, {
"location": "Yuma, ARIZONA",
"iata": "(YUM)",
"startLetter": "Y"
}];
$scope.listviewSettings = {
theme: ' ',
themeVariant: ' ',
lang: ' ',
swipe: false,
enhance: true,
onItemTap: function (event, inst) {
var target = angular.element(event.domEvent.target),
item = angular.element(event.target);
if (target.hasClass('mbsc-ic')) {
item.toggleClass('star3');
target
.toggleClass('mbsc-ic-star3')
.toggleClass('mbsc-ic-star');
mobiscroll.toast({
message: 'Favorites updated'
});
}
}
};
$scope.optlSettings = {
theme: ' ',
themeVariant: ' ',
type: 'tabs',
display: 'top',
select: 'single',
onItemTap: function (event, inst) {
var i,
text = event.target.innerHTML,
listItems = list.querySelectorAll('.mbsc-lv-item:not(.star3)'),
favoriteItems = list.querySelectorAll('.star3'),
favoriteCont = document.querySelector('.md-no-bookmark');
preventScroll = true;
isFavorite = event.target.classList.contains('md-item-star');
for (i = 0; i < listItems.length; ++i) {
listItems[i].style.display = isFavorite ? 'none' : 'block';
}
for (i = 0; i < listDeviders.length; ++i) {
listDeviders[i].style.display = isFavorite ? 'none' : 'block';
}
favoriteCont.style.display = isFavorite && favoriteItems.length == 0 ? 'block' : 'none';
if (!isScrolled && !isFavorite) {
//$scope.airportList.navigate(list.querySelector('.header' + text).nextElementSibling);
document.body.scrollTop = list.querySelector('.header' + text).nextElementSibling.offsetTop - this.offsetHeight;
popup.classList.add('md-show-popup');
popup.innerHTML = text;
clearTimeout(timer);
timer = setTimeout(function () {
popup.classList.remove('md-show-popup');
}, 1500);
}
}
};
$scope.isFirstLetterChanged = function (nv) {
if (nv && nv !== $scope.firstLetter) {
$scope.firstLetter = nv;
return true;
}
return false;
};
window.addEventListener('scroll', handleScroll);
window.addEventListener('touchmove', handleScroll);
}]);
<div ng-app="demoApp" ng-controller="demoController" class="md-navigate">
<div class="md-popup">c</div>
<ul class="md-alfabet" mobiscroll-optionlist="optlSettings" mobiscroll-instance="menustrip">
<li class="md-item-star"><span class="mbsc-ic mbsc-ic-star3"></span</li>
<li class="md-item-A" data-selected="true">A</li>
<li class="md-item-B">B</li>
<li class="md-item-C">C</li>
<!-- Showing partial data. Download full source. -->
</ul>
<ul id="demo" mobiscroll-listview="listviewSettings" mobiscroll-data="data" mobiscroll-instance="airportList">
<li class="md-no-bookmark" ng-if="$index == 0">
<div class="md-nob-title">Traveling to the same place frequently?</div>
<div class="md-nob-txt">You can bookmark airports by tapping on the star to the left and they will show up here.</div>
<div class="md-nob-separator"></div>
<img class="md-nob-img" src="https://img.mobiscroll.com/demos/lv-bookmark.png" >
</li>
<li data-role="list-divider" ng-class="'header' + item.startLetter[0]" ng-if="isFirstLetterChanged(item.startLetter)" >{{ item.startLetter[0] }}</li>
<li data-icon="star">{{ item.location }}<span class="md-iata">{{ item.iata }}</span></li>
</ul>
</div>
.demo-main-cont.demo-comp-listview { padding: 0; }
.demo-comp-listview .demo-note { margin: 10px; }
.md-navigate .md-list .mbsc-lv-item {
padding-right: 4em;
backface-visibility: hidden;
-webkit-transform: none;
-moz-transform: none;
transform: none;
}
.md-popup {
position: fixed;
width: 100px;
height: 100px;
margin: -50px 0 0 -50px;
border-radius: 100px;
background: rgba(78, 204, 196, .6);
color: #fff;
font-size: 56px;
font-family: sans-serif;
line-height: 100px;
text-align: center;
top: 50%;
left: 50%;
z-index: 10;
opacity: 0;
pointer-events: none;
-webkit-transition: opacity 300ms;
-moz-transition: opacity 300ms;
transition: opacity 300ms;
}
.md-show-popup {
opacity: 1;
}
.md-alfabet .mbsc-ms-item {
min-width: 2.5em;
}
.md-iata {
position: absolute;
top: 50%;
right: 1em;
margin-top: -9px;
}
.example-full .md-popup
{
position: fixed;
}
.md-item-star .mbsc-ic-star3 {
font-size: 14px;
}
/* no bookmark section */
.md-navigate .md-list .mbsc-lv-item.md-no-bookmark {
display: none;
padding: 1.5em 2.5em;
height: 571px;
-webkit-box-sizing: content-box;
box-sizing: content-box;
}
.md-nob-separator {
height: 1px;
margin-bottom: 38px;
width: 100%;
background: #CACACA;
}
.md-nob-title {
text-align: center;
padding: 1em;
font-size: 16px;
}
.md-nob-txt {
text-align: center;
padding: 1em 0 2em 0;
color: #a0a0a0;
font-size: 14px;
}
.md-navigate .mbsc-lv .md-no-bookmark.mbsc-lv-item .md-nob-img {
position: static;
display: block;
max-width: 274px;
width: 274px;
max-height: initial;
margin: 0 auto;
border: 1px solid #ccc;
margin-bottom: 14px;
transform: none;
}
.md-no-bookmark {
display: none;
padding: 2em;
background: #f7f7f7;
font-size: 16px;
}
.md-navigate .md-no-bookmark.mbsc-lv-item-active:after {
background: none !important;
}
Looking for something you didn't see or have a sales question?
Ask us about it, we're here to help.
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 --version=4
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:
Step 3.Copy the code into your app.
Step 4.Run ionic serve in the root folder of your app 🎉
$ ionic serve
And voilà, everything should be running smoothly.
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 --version=4
You will be prompted to log in with your mobiscroll account. Set your password here
Run this command for Ionic 5 & React Mobiscroll starter:
Step 4.Run ionic serve in the root folder of your app 🎉
$ ionic serve
And voilà, everything should be running smoothly.
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 Angular project
$ mobiscroll config angular --version=4
You will be prompted to log in with your mobiscroll account. Set your password here
Step 3.Copy the code into your app. HTML goes into the markup, TS into Typescript.
Step 4.Run ng serve in the root folder of your app 🎉
$ ng serve
And voilà, everything should be running smoothly.
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!
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.
Extract the zip file and open the demo in your favorite browser.
To install Mobiscroll in your project
follow instructions from this page.
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.
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 demos are using Babel's in-browser ES6 and JSX transformer.
Extract the zip file and open the demo in your browser. To install Mobiscroll in your project
follow instructions from this page.
Let us know if we can help and enjoy! 👍
We have to set you up with a trial for this to run 👍
Enter a new password and hit the button below to change it!
You are setting a password for the account
Your password has been changed!