Mercurial > lada > lada-client
view resources/lib/datetime/UX_DateTimeMenu.js @ 561:ea2c35cd9c19
Ein grid für Messungen hinzugefügt und im Window ProbeEdit eingesetzt. Ohne Funktion sind die Felder: Status, OK-Flag, Anzahl Nuklide/Kommentare
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Mon, 09 Mar 2015 11:55:51 +0100 |
parents | b6875e900e3a |
children |
line wrap: on
line source
Ext.define('Ext.ux.DateTimeMenu', { extend: 'Ext.menu.Menu', alias: 'widget.datetimemenu', requires: ['Ext.ux.DateTimePicker'], hideOnClick: true, pickerId: null, initComponent: function() { var me = this; Ext.apply(me, { showSeparator: false, plain: true, border: false, bodyPadding: 0, items: Ext.applyIf({ cls: Ext.baseCSSPrefix + 'menu-date-item', id: me.pickerId, xtype: 'datetimepicker' }, me.initialConfig) }); me.callParent(arguments); me.picker = me.down('datetimepicker'); me.relayEvents(me.picker, ['select']); if (me.hideOnClick) { me.on('select', me.hidePickerOnSelect, me); } }, hidePickerOnSelect: function() { Ext.menu.Manager.hideAll(); } });