jquery-ui-button

How do I discover all available properties when using a jQuery UI widget?

∥☆過路亽.° 提交于 2020-02-08 03:13:33
问题 I have recently found that there are additional properties for some jQuery UI widgets that work, but are not documented. For example, when providing the buttons property on a jQuery UI 1.11.4 dialog box, I can use sub-properties like id and autofocus , neither of which are listed in the official documentation. $("#myDialog").dialog({ title: "Do the thing?" buttons: [ { text: "Yes", id: "dialogBtnYes", click: function () { $(this).dialog("close") } }, { text: "No thanks", id: "dialogBtnNo",

Changing color of jQuery UI Buttons

天涯浪子 提交于 2019-12-20 11:06:13
问题 Is there an easy way to change the color of a jQuery UI Button? Modifying the css is discouraged from the documentation and doing so anyway is tricky. They say, "We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain." I understand how to change the theme, but then how do you get different colored buttons on the same page? 回答1: I just did this: create a new theme with the new colour button; copy the ..hard.. and ..soft... gradient

Changing color of jQuery UI Buttons

北城余情 提交于 2019-12-20 11:05:21
问题 Is there an easy way to change the color of a jQuery UI Button? Modifying the css is discouraged from the documentation and doing so anyway is tricky. They say, "We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain." I understand how to change the theme, but then how do you get different colored buttons on the same page? 回答1: I just did this: create a new theme with the new colour button; copy the ..hard.. and ..soft... gradient

Changing jQuery UI Button size?

情到浓时终转凉″ 提交于 2019-12-20 09:33:03
问题 I've been using the jQuery UI button all over my page, however I haven't found a way around what seems to be a simple problem. I want some of my buttons to be smaller than the other, this should be as simple as setting the CSS of the button text to something like, font: .8em; However jQuery UI takes your DOM element and wraps it: <button class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all"> <span class="ui-button-text">Button Label</span> </button> So if I have a

Add an image to the jquery button

假如想象 提交于 2019-12-11 03:20:56
问题 I am wondering how to add an image to the jquery button. Till now I was using the jquery ui button in my project and I got custom images from the graphics team, so I would like to implement them. submit.button({ icons: {primary:'ui-icon-trash'}, text: false }) How to add custom image to this jquery button? 回答1: <button>Trash</button> <style> .ui-button ​.ui-button-icon-primary { background: url('/my-custom-trash-image.png'); }​ </style> <script> $(function() { $('button').button({ icons: {

jQuery buttonset change

*爱你&永不变心* 提交于 2019-12-10 13:10:39
问题 I'm new to jQuery and thought I would use its buttonset instead of some radio buttons on my application. Documentation here: http://jqueryui.com/demos/button/#radio How do I add a handler to an event when the set of buttons changes value? Here is a snippet of the code I tried: $('input.tod_quant').change(function() { alert('TEST'); }); And then later on in the HTML: <span id="tod_quant" class="buttonset"> <input type="radio" id="tod_quant5" name="tod_quant" value="5" /><label for="tod_quant5"

jQuery UI menu inside a jqGrid cell

自作多情 提交于 2019-12-08 07:02:35
问题 I have created a grid and customized a column to contain a jquery UI menu like in the Split Button example Everything works fine except for the fact that the menu window appear inside the cell causing a bad visual effect, that is, the cell height increase to make room for the menu window. Have a look at the following screenshot for a visual explanation (nevermind about the menu item in disabled state). Is there any way way to make the menu window appear on top of the table element in term of

Jquery UI button gets disabled on refresh

别说谁变了你拦得住时间么 提交于 2019-12-03 17:20:15
问题 I asked about this on the jquery forum a few weeks ago without luck, so I will try again here :) I've made a simple widget for a project I'm working on, but I have encountered an odd problem. It is easiest to explain it with an example implementation. http://decko.dk/buttontest On the page there are 3 button. The first one is my drop down widget. The next one is a regular disabled button (A) and the last one a regular enabled button (B). If you then refresh the page (press F5 or whatever) the

Changing color of jQuery UI Buttons

梦想的初衷 提交于 2019-11-30 06:12:49
Is there an easy way to change the color of a jQuery UI Button? Modifying the css is discouraged from the documentation and doing so anyway is tricky. They say, "We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain." I understand how to change the theme, but then how do you get different colored buttons on the same page? Mark Redman I just did this: create a new theme with the new colour button; copy the ..hard.. and ..soft... gradient files from the new theme images folder; rename them so as to not confuse them with the main theme;