I create a DateField and add it on screen1 like above image.
User can select "time" from this DateField.
I want to save this "time" and create a new DateField has a same "time" on screen2
How I can do this?
Use the DateField.getDate() and DateField.setDate() methods for that.
Related
I have an activity with custom code (calculator). I want to call it as input type when EditText is clicked on. Is there a way to replace existing input type with this activity and what would be the best way to do it?
The easiest way is to create custom keyboard and attach the desired functionality to it.
Instead of displaying it like the common Rangeselector display, is there a way to make it like a dropdown? Appreciate your help with this. Thank you.
You can use exporting module to generate a custom button with a dropdown feature. Inside exporting.buttons.toggle object you can create menuItems array which will contain list of the buttons. Each button has onclick event which will let you to call rangeSelector.clickButton(index, redraw) function, responsible for selecting a specific range. Lastly, you can hide original range selector, for example using CSS:
.highcharts-range-selector-buttons {
visibility: hidden;
}
API Reference:
http://api.highcharts.com/highstock/exporting.buttons
http://api.highcharts.com/highstock/rangeSelector
Example:
http://jsfiddle.net/8rrotg5a/
I want to hide the + icon in the far left column and add another icon.
When the user clicks the new Icon I want to programatically expand that specific row.
I see there is gridApi.expandable.expandAllRows();
Is there a way to expand just one row?
You can use toggleRowExpansion function, add this attribute to the desired element which will be trigger this toggle:
ng-click="grid.api.expandable.toggleRowExpansion(row.entity)"
If all you want is to change the default plus icon to a different icon, you can simply override the template for the expandableRowHeader.
$templateCache.put('ui-grid/expandableRowHeader',
"<div class=\"ui-grid-row-header-cell ui-grid-expandable-buttons-cell\"><div class=\"ui-grid-cell-contents\"><i ng-class=\"{ 'ui-grid-icon-plus-squared' : !row.isExpanded, 'ui-grid-icon-minus-squared' : row.isExpanded }\" ng-click=\"grid.api.expandable.toggleRowExpansion(row.entity)\"></i></div></div>"
);
You can change the ng-class=\"{ 'ui-grid-icon-plus-squared' : !row.isExpanded, 'ui-grid-icon-minus-squared' : row.isExpanded }\" and change them to a different icon of your choice.
I there some mechanism to access the HTML5 tooltip (title property) programmatically in Dart?
I would like programmatically display the tooltip if a model property falls in a certain range etc.
Thanks
You need to get hold of the element and then just set the attribute.
import 'dart:html';
main(args) {
document.querySelector('#idofyourtag').title = 'show this as tooltip';
}
when having a calendar widget assigned to a textbox, how can i trigger it from a separate icon? (i don't mean the internal showOn button feature).
you can bind the separate icon with an event calling this function
$('#your-datepicker').datepicker('show');
look like
$('input#mybutton').click(function(){
$('#datepicker').datepicker('show');
});