Code Monkey home page Code Monkey logo

jquery-ui-fff-silk's Introduction

jQuery UI FAMFAMFAM Silk

FAMFAMFAM Silk icons for jQuery UI buttons.

Documentation

Assuming you already have jQuery and jQuery UI installed and working properly.

  1. Copy fff-silk.png to your image folder.
  2. Copy fff-silk.min.css to your CSS folder. Remember to change the image URL to suit your needs (it defaults to ../img/fff-silk.png).
  3. Add fff-silk.min.css after your jQUery UI CSS.

Usage

Your element must have the fff class in order for the icons to show up. Then you can just use jQuery UI's button function.

Icon + No Text

<button id="icon-notext" class="fff">icon-notext</button>
$('#icon-notext').button({
	text: false,
	icons: {
		primary: 'silk-icon-accept'
	}
});

Icon + Text

<button id="icon-text" class="fff">icon-text</button>
$('#icon-text').button({
	icons: {
		primary: 'silk-icon-application-home'
	}
});

Icon + Text + Icon

<button id="icon-text-icon" class="fff">icon-text-icon</button>
$('#icon-text-icon').button({
	icons: {
		primary: 'silk-icon-user-orange',
		secondary: 'silk-icon-asterisk-orange'
	}
});

Text + Icon

<button id="text-icon" class="fff">text-icon</button>
$('#text-icon').button({
	icons: {
		secondary: 'silk-icon-wrench-orange'
	}
});

Icon + Icon

<button id="icon-icon" class="fff">icon-icon</button>
$('#icon-icon').button({
	text: false,
	icons: {
		primary: 'silk-icon-cog',
		secondary: 'silk-icon-bullet-arrow-bottom'
	}
})

Thanks

  • Mark James - Creator of the awesome FAMFAMFAM Silk icons!
  • Dan Ryan - For inspiring me to make my own jQuery UI and FAMFAMFAM integration.

jquery-ui-fff-silk's People

Contributors

rodoabad 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.