bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
54 stars 6 forks source link

Add ability to hide/remove CalendarEditor Parent field and Remove button #9830

Closed arcady-zherdev closed 2 months ago

arcady-zherdev commented 3 months ago

Requested here: https://github.com/bryntum/support/issues/9825#issuecomment-2291264293

  1. Providing below config results an exception:
    parentField : false
  2. Hiding parentField and removeButton doesn't work as expected too since the editor toggles the controls visibility when loading a calendar data. Related code:

        // hide "Parent" field when there is no records in the combo
        parentField.hidden = !widgetMap.parentField.store.count;
    
        // hide "Delete" button for the project calendar or null
        widgetMap.removeButton.hidden = !calendar || calendar.project?.calendar === calendar;
NegativeDearc commented 2 months ago

Hello @arcady-zherdev,

Did this fixed? I tried the new release 6.0.5 seems not working.

        {
          type: 'resourceCalendar',
          text: 'Shift',
          width: 180,
          editor: {
            type: 'calendarfield',
            calendarEditor: {  
              removeButton: false,
              parentField: false,
             }
            }
           }