Re: [Carbon-dev] Tool tip script
Hi, I did some modifications to this tag library. When JSP page is using a common resource bundle, tool tip tag library modified to take that resource bundle. To use that in JSP, This will take the common resource bundle define in JSP. If need to define a resource bundle other than the common bundle use in JSP page, Regards, Dinusha. On Sun, Feb 27, 2011 at 2:14 PM, Dinusha Senanayaka wrote: > Hi, > > I wrapped the above tool tip Java Script as a Tag Library and going to add > as a carbon tag in the Carbon UI Core bundle. > > This is the tld for this tag library. > > > tooltips > org.wso2.carbon.ui.taglibs.TooltipsGenerator > JSP > A tag for displaying tool tip > > image > true > true > > > description > false > true > > > resourceBundle > false > true > > > key > false > true > > > noOfWordsPerLine > false > true > > > > > Attributes taken in tag : > >- image - this attribute take the image that tool tip should appear >when mouse over it. >- description - this is the tool tip content. This should provide only >when content is taken as user text without taking from resource bundle. >- resourceBundle - resource bundle name. eg: >org.wso2.carbon.dataservices.ui.i18n.Resources. This should provide only >when tool tip content is reading from a resource file. >- key - element in resource file to take tool tip content. eg: >dataservices.enableboxcarring.help. This also provide only when tool tip >content is reading from a resource file. >- noOfWordsPerLine - you can adjust the size of tool tip box by giving >no of words that should contain in a single line. optional attribute. >default set to 10. > > > This is how this tag library can use in a jsp file : > > 1. When the tool tip content is taken from a resource bundle . > > resourceBundle='org.wso2.carbon.dataservices.ui.i18n.Resources' > key='dataservices.enableboxcarring.help' '> > > > 2. When the tool tip content is taken as text input without taking from > resource file. > > > > > Regards, > Dinusha. > > > > > > > > > > On Tue, Feb 22, 2011 at 6:09 PM, Chanaka Jayasena wrote: > >> Hi all, >> >> I created a simple tool tip script to fulfil a requirement to show an >> image as a tool tip. I commit the script to Carbon UI Core bundle. It use >> YUI panel to display the tool tip. >> >> This is how you can use it in a carbon ui bundle. >> >> 1 - Include following js,css library files which are in the core ui. >> >> > href="../yui/build/container/assets/skins/sam/container.css"> >> >> > src="../yui/build/yahoo-dom-event/yahoo-dom-event.js"> >> > src="../yui/build/container/container-min.js"> >> > src="../yui/build/element/element-min.js"> >> >> >> >> 2 - Define the mouseover event listener. >> >> Mouse Over >> This Text >> >> thanks, >> Chanaka >> >> ___ >> Carbon-dev mailing list >> Carbon-dev@wso2.org >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> > ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Tool tip script
Hi, I wrapped the above tool tip Java Script as a Tag Library and going to add as a carbon tag in the Carbon UI Core bundle. This is the tld for this tag library. tooltips org.wso2.carbon.ui.taglibs.TooltipsGenerator JSP A tag for displaying tool tip image true true description false true resourceBundle false true key false true noOfWordsPerLine false true Attributes taken in tag : - image - this attribute take the image that tool tip should appear when mouse over it. - description - this is the tool tip content. This should provide only when content is taken as user text without taking from resource bundle. - resourceBundle - resource bundle name. eg: org.wso2.carbon.dataservices.ui.i18n.Resources. This should provide only when tool tip content is reading from a resource file. - key - element in resource file to take tool tip content. eg: dataservices.enableboxcarring.help. This also provide only when tool tip content is reading from a resource file. - noOfWordsPerLine - you can adjust the size of tool tip box by giving no of words that should contain in a single line. optional attribute. default set to 10. This is how this tag library can use in a jsp file : 1. When the tool tip content is taken from a resource bundle . 2. When the tool tip content is taken as text input without taking from resource file. Regards, Dinusha. On Tue, Feb 22, 2011 at 6:09 PM, Chanaka Jayasena wrote: > Hi all, > > I created a simple tool tip script to fulfil a requirement to show an image > as a tool tip. I commit the script to Carbon UI Core bundle. It use YUI > panel to display the tool tip. > > This is how you can use it in a carbon ui bundle. > > 1 - Include following js,css library files which are in the core ui. > > href="../yui/build/container/assets/skins/sam/container.css"> > > src="../yui/build/yahoo-dom-event/yahoo-dom-event.js"> > src="../yui/build/container/container-min.js"> > src="../yui/build/element/element-min.js"> > > > > 2 - Define the mouseover event listener. > > Mouse Over > This Text > > thanks, > Chanaka > > ___ > Carbon-dev mailing list > Carbon-dev@wso2.org > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Tool tip script
On Tue, Feb 22, 2011 at 6:09 PM, Chanaka Jayasena wrote: > Hi all, > > I created a simple tool tip script to fulfil a requirement to show an image > as a tool tip. I commit the script to Carbon UI Core bundle. It use YUI > panel to display the tool tip. > > This is how you can use it in a carbon ui bundle. > > 1 - Include following js,css library files which are in the core ui. > > href="../yui/build/container/assets/skins/sam/container.css"> > > src="../yui/build/yahoo-dom-event/yahoo-dom-event.js"> > src="../yui/build/container/container-min.js"> > src="../yui/build/element/element-min.js"> > > > > 2 - Define the mouseover event listener. > > Mouse Over > This Text > Thanks Chanaka... This can be used to improved the security and entitlement UI wizards > > thanks, > Chanaka > > ___ > Carbon-dev mailing list > Carbon-dev@wso2.org > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] Tool tip script
Hi all, I created a simple tool tip script to fulfil a requirement to show an image as a tool tip. I commit the script to Carbon UI Core bundle. It use YUI panel to display the tool tip. This is how you can use it in a carbon ui bundle. 1 - Include following js,css library files which are in the core ui. 2 - Define the mouseover event listener. Mouse Over This Text thanks, Chanaka ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev