@nativescript-community/ui-material-activityindicator
TypeScript icon, indicating that this package has built-in type declarations

7.2.69 • Public • Published

NativeScript Material Circular progress indicator

Material Design's Circular progress indicator component for NativeScript.

npm npm

Contents

  1. Installation
  2. Changelog
  3. FAQ
  4. Usage
  5. API

Installation

For NativeScript 7.0+

  • tns plugin add @nativescript-community/ui-material-activityindicator

For NativeScript 6.x

  • tns plugin add nativescript-material-activityindicator

If using tns-core-modules

  • tns plugin add nativescript-material-activityindicator@2.5.4

Be sure to run a new build after adding plugins to avoid any issues.

Usage

Plain NativeScript

IMPORTANT: Make sure you include xmlns:mda="@nativescript-community/ui-material-activityindicator" on the Page element.

XML

<Page xmlns:mda="@nativescript-community/ui-material-activityindicator">
    <StackLayout horizontalAlignment="center">
        <mda:ActivityIndicator busy="true"/>
    </StackLayout>
</Page>

CSS

mdactivityindicator {
    color: #fff;
}

NativeScript + Angular

import { NativeScriptMaterialActivityIndicatorModule } from "@nativescript-community/ui-material-activityindicator/angular";

@NgModule({
    imports: [
        NativeScriptMaterialActivityIndicatorModule,
        ...
    ],
    ...
})
<MDActivityIndicator busy="true"></MDActivityIndicator>

NativeScript + Vue

import Vue from 'nativescript-vue';
import ActivityIndicatorPlugin from '@nativescript-community/ui-material-activityindicator/vue';

Vue.use(ActivityIndicatorPlugin);
<MDActivityIndicator busy="true"/>

API

Attributes

Inherite from NativeScript Activity Indicator so it already has all the same attributes

Package Sidebar

Install

npm i @nativescript-community/ui-material-activityindicator

Weekly Downloads

372

Version

7.2.69

License

Apache-2.0

Unpacked Size

44.8 kB

Total Files

26

Last publish

Collaborators

  • classicoldsong
  • asharghi
  • farfromrefuge
  • triniwiz
  • eddyverbruggen
  • rigor789
  • walkerrunpdx
  • dnr
  • keerl
  • cvietor
  • bradmartin
  • rdlabo
  • tralves
  • cjohn001
  • jcassidyav
  • sebjean
  • edusperoni
  • ammarahm-ed
  • mayerlench
  • dgmachado