Giter Site home page Giter Site logo

angular-alert's Introduction

angular-lert V1.1

Params

名称 类型 是否必须 描述 示例值 默认值
title Array 标题 ["this is title1","this is title2"]
message Array 内容 ["this is message1","this is message2"]
type String 类型 "input" "text"
btn_num Number 按钮个数 2 2
html String 自定义html(当type为html时) "<div>Hello World</div>"
placeholder String input占位符(当type为input时) "this is placeholder"
btn_no_text String btn_no对文文案 "取消" "取消"
btn_yes_text String btn_yes对文文案 "确定" "确定"
btn_back_text String btn_back对文文案 "返回" "返回"
scope Object $scope $scope

Usage

function test ( $scope, dialog ) {
    dialog({
    	title:['this is title'],
    	message:['this is message'],
    	type:'html',
    	html:'<div>Hello World</div>',
    	btn_num: 2,
    	scope:$scope
    }).btn_yes(function(){
    	alert('clicked btn_yes');
    });
}

Require

angular.module('inspinia', [
    'angularAlert'	//angularAlert
]);

angular-alert's People

Contributors

tata-zz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.