Git Product home page Git Product logo

iq72 / simpleui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from windygex/simpleui

0.0 2.0 0.0 523 KB

SimpleUI是基于jQuery的组件库,包含了常见的web组件,适用于开发web2.0的应用程序与小型网站。SimpleUI继承了jQuery的简单,但是却避免了代码的高度耦合。继承自Widget的完善的组件生命周期,面向HTML扩展的组件开发,针对HTML5与CSS3的技术升级,或许SimpleUI是你最佳的选择。

simpleui's Introduction

SimpleUI

SimpleUI是基于jQuery的组件库,包含了常见的web组件,适用于开发web2.0的应用程序与小型网站。SimpleUI继承了jQuery的简单,但是却避免了代码的高度耦合。继承自Widget的完善的组件生命周期,面向HTML扩展的组件开发,针对HTML5与CSS3的技术升级,或许SimpleUI是你最佳的选择。

快速使用

1.引入种子文件

首先引入SimpleUI加载器

<script src="simpleui/core.js"></script>

2.使入require方法加载需要资源

require(['ui/dialog'],function(){
	$('#').dialog();
});

3.使用define编写一个模块,return公开的方法或者属性

define(function(){
	return 'test';
});

使用widget来声明组件

define('animal',['widget'],function(Widget){
	
	var S = Simple,Animal;
	
	Animal = S.declare('Animal',Widget,{
		template:'<div></div>',
		renderUI:function(){
			this.el.html('animal');
		}
	});
	
	return Animal;
});

require(['animal'],function(Animal){
	new Animal();
});

simpleui's People

Contributors

windygex avatar

Watchers

James Cloos avatar  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.