release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Search | Go
Wiki > System > JQueryPlugin > VarJQICON

JQICON{"name" ...} -- render an image

  • This renders an icon image as found on an icon search path. The icon search path is configured in {JQueryPlugin}{IconSearchPath} and defaults to FamFamFamSilkIcons, FamFamFamSilkCompanion1Icons, FamFamFamFlagIcons, FamFamFamMiniIcons, FamFamFamMintIcons'. The named icon will be picked found first on this path of topics where icons are attached to. The JQICON leverages the general icon loading mechanism as implemented by the JQueryPlugin and used by BUTTON as well.
  • Parameters:
    Parameter: Description:Sorted ascending Default:
    alt   alt attribute
    class additional css class for the img tag  
    format format string used to render the icon; known variables to be used in the format string are:
    • $iconPath: url path
    • $iconClass: css class as specified by the class parameter
    • $iconAlt: alt attribute-value; if the alt parameter to JQICON is set, this expands to alt='...'
    • $iconTitle: title attribute-value; if the title parameter to JQICON is set, this expands to title='...'
    <img src='$iconPath' class='$iconClass' $iconAlt$iconTitle/>
    "name" name of the icon to display  
    title title attribute  
  • Example:
         %JQICON{"tick" alt="alternative content" title="this is a tick icon"}%
         %JQICON{"cross"}%
         %JQICON{"disk"}%
         %JQICON{"star"}%
         %JQICON{"lightbulb"}%
         %JQICON{"camera"}%
         %JQICON{"date"}%
         
    Produces: alternative content cross disk star lightbulb camera date
  • Related: VarJQICONPATH, VarICON, JQueryPlugin, FamFamFamSilkIcons
r1 - 19 Sep 2010 - 07:03:33 - ProjectContributor

Parents: JQueryPlugin
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Wiki? Send feedback