I have a text string in my grid in follwoing format
Pawan/tiwari/idof22/vf
i want to implement drag and drop of this string in textbox.
but how can i determine which substring was clicked
suppose if user click on tiwari and drop it in text box then only tiwari will be in textbox.
Thanks
Yes I got answere of my question.
I have created span tag dynamically but this span tag is not draggable so when i am genrating this span tag i also call $('cssclass').draggable() function now it's working.
Related
I see Help Text and Inline Help Text properties for columns in APEX 20.1, but I don't see any options for customizing how the field help is displayed. Does that ability exist?
For example, the Inline Help Text displays below the field. Is there a way to specify that:
It should display to the right of the field?
It should display as a tool tip, when the cursor enters the field?
Thank you
If the requirement is to specify some text to the right of the field then use Post Text property instead of Inline Help Text property.
To show a tooltip paste the below code in the Function and Global Variables section
$('#MY_PAGE_ITEM').attr('title', 'My Tooltip Text');
Note:
Replace MY_PAGE_ITEM with your Page Item name.
Replace My Tooltip Text with the required text.
I am writing a script using jQueryUI's button http://jqueryui.com/dialog/#modal-form.
The button is pretty fancy looking.
Now, when I tried to use jQuery to change the display name of the button:
$('#signin').text("new name");
The Button revert to the original style of the browser, with no padding and etc. I don't know why change of style happens when I just change the display name of the button. Please suggest me a way to fix it.
To change button text use this :
$('#btnId').val('new-text');
I figured out how. I used a span tag around the display name and just change text of that span tag.
I have this case where I set a current item from a list and I need to use a textarea to edit that element's value.
Because of some constraints I have to use a keyup event but I don't think that's a problem.
Check this fiddle: http://jsfiddle.net/terebentina/Euj2C/
click on first/second buttons - it works, it changes the text in the textarea to the value of each element.
change the text in the textarea to something
click on the first/second buttons again - the textarea is not updated anymore. If you look in console, you can see that it switches between the elements, it's just that the textarea is not updated anymore.
Any suggestions? this is driving me nuts!
I know there is a better way modifying your directive to do this but as a quick fix for now you can try binding your textarea to a ngModel value that is just a copy of the current text in the selected element:
<textarea keyup="" ng-model="keyupText"></textarea>
With this in as your current function:
$scope.current = function(idx) {
$scope.current_element = $scope.elements[idx];
$scope.keyupText = $scope.current_element.value;
console.log('current is', $scope.current_element.value);
}
See this fiddle for an example.
Is there anyway to make the search input align with the title? I realize only button can be at the same line with title.
Wrap a div around your input with the "data-role=fieldcontain" attribute.
With a my quiz creator interface, the user enters three answers then marks the correct one by setting the radio button:
http://jsfiddle.net/VLeph/2/
However, I cannot get the text input and checkbox to line up nicely. Preferably, I would like to do this without rounded corners between text input and checkbox. Like the horizontal radio group shown in the link below. But with text input on the left instead.
http://jsfiddle.net/CeN9z/ .
Do you have an idea how to do this?
thanks :)
Christian
You can try placing all the text inputs in one cell in the grid, and all the radio buttons in the other cell, then use a bit of styling to align them properly.
Something like jsfiddle