say: When we create a TextAreaItem inline style such as margin, width height etc are set are created along with a style name... How can we get rid of it?
<textarea handlenativeevents="false" oninput="isc_TextAreaItem_1.$43g()" tabindex="1052" wrap="SOFT" spellcheck="true" autocomplete="OFF" style="margin:0px;WIDTH:140px;HEIGHT:94px;-moz-user-focus:normal;" cols="10" rows="10" class="textItem" $9a="$9b" $89="isc_TextAreaItem_1" id="isc_5" name="isc_TextAreaItem_0"></textarea>
U can achieve this by setting setShowTitle to false
EG : textAreaItem.setShowTitle(false);
FormItem.setTextBoxStyle(String)
FormItem.setCellStyle(String)
Related
I want to handle slider with hidden check box for scripts using watir.
Can any one help me to resolve this issue?
This would be more like visibility: hidden
Try setting the checkbox's opacity to 0. If you want the checkbox to be out of flow try position:absolute and offset the checkbox by a large number.
HTML
<label class="checkbox"><input type="checkbox" value="valueofcheckbox" checked="checked" style="opacity:0; position:absolute; left:9999px;">Option Text</label>
How many checkboxes do you have at this page? If there is only one then this might work:
browser.checkbox(attribute: attribute-value).when_present.set
I am working with MVC 4. I want to use model's value to set inline-style. But It didn't work?
style= "background-color:#item.CompanyColor"//It not work
style= "background-color:Black"//It work: background color is black now
And I can use this value to set color like that:
font color="#item.CompanyColor"//it work: font color changed
So, what is the problem here?
Use parenthesis to separate code with style attribute.
It should be like this :
style= "background-color: #(item.CompanyColor) "
You can also use Html.Raw html helper
style="background-color: #{Html.Raw(item.CompanyColor);}"
I'm having a little trouble dynamically changing a button's theme dynamically. From a different post I learned to use:
<input type="button" data-inline="true" data-mini="true" data-theme="c" id="my-button" value="Save">
<script>
$("#my-button").buttonMarkup({ theme: 'a' }).button('refresh');
</script>
Technically this works, until I mouse over - then the button falls back to data-theme "c". Is there a better way to dynamically change theme?
if you use a button as below
Save2
You can change the theme as below
$('#my-button2').attr("data-theme", "c").removeClass("ui-btn-up-e").addClass("ui-btn-up-c");
check out a live fiddle here http://jsfiddle.net/mayooresan/jfDLU/
I tried to find the answer for this one, but came up with this solution after looking into the DOM structure. I created the below function for toggling the theme on click the button. the hover class needs to be addressed only when changing the theme of the same button you are clicking.
These seems to work for input type button element. (jqm version 1.3.2)
function changeButtonTheme(buttonSelector,toTheme){
var currentTheme = $(buttonSelector).attr('data-theme');
var parent = $(buttonSelector).parent();
$(buttonSelector).attr("data-theme", toTheme).removeClass("ui-btn-up-"+currentTheme).addClass("ui-btn-up-"+toTheme);
parent.attr("data-theme", toTheme).removeClass("ui-btn-up-"+currentTheme).addClass("ui-btn-up-"+toTheme);
//parent.removeClass("ui-btn-hover-"+currentTheme).addClass("ui-btn-hover-"+toTheme);
}
I dont have enough points to post a picture, but I am working on a project and the input text fields are way smaller than it is on the http://twitter.github.com/bootstrap/index.html site. I have <!DOCTYPE html> in the application.html.erb, but it still dont work.
Anyone got any idea on what the problem might be?
The width of textbox may be affected by the parent html tag's width. I cant be sure without seeing the html mark-up. The default width is defined in bootstrap.css for input text field. You can override this width by including desired span classes to the control like this..
<input type="text" class="span3" />
<input type="text" class="span12" />
It would be better to use the chrome inspector to check for the CSS rule for the input field. If that doesnt work, you can add a class or id to the input fields you need and then in a custom CSS file you can set the width of the class or id. This will change the size of your input field. Just make sure that your custom css file comes after the bootstrap css file.
I define a label and set its value
<bbox>
<label id="notify" value="Test"/>
</bbox>
The width of the label is fix so if the value (text) is longer then the width
I want the line to break. I tried it with css doing
word-wrap:break word;
But this does not work. Is there a XUL element that provides such a feature or do you know an other technique?
You can do this with either the <label> or the <description> element, but you need to use its textContent rather than its value.
<label id="notify">Test</label>
I believe a xul description is what you want.