Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support adding create, view and edit templates #6

Open
HaithemMosbahi opened this issue Jul 6, 2017 · 2 comments
Open

Support adding create, view and edit templates #6

HaithemMosbahi opened this issue Jul 6, 2017 · 2 comments

Comments

@HaithemMosbahi
Copy link
Owner

HaithemMosbahi commented Jul 6, 2017

The basic implementation of the full calendar library doesn't offer view and edit functionalities.
The purpose of the scheduler-component is to provide a highly customizable calendar that brings features in more declarative way. Furthermore, the goal is to facilitate the integration of additional features without worrying about the internal implementation of the fullCalendar library.
This feature will allows developers to provide the scheduler component with their view, create & edit templates.
Also the scheduler component will offer a default implementation of :

  • View an event in a paper dialog.
  • Create a new event by clicking on the desired date in the scheduler. ( will only support adding the title for the upcoming release and also to keep the default template as simple as possible )
  • Edit an existing event by changing its title.
@HaithemMosbahi HaithemMosbahi changed the title Support adding view and edit templates Support adding create, view and edit templates Jul 7, 2017
HaithemMosbahi added a commit that referenced this issue Jul 7, 2017
HaithemMosbahi added a commit that referenced this issue Jul 8, 2017
HaithemMosbahi added a commit that referenced this issue Jul 9, 2017
@threeaccents
Copy link
Contributor

Hey man with this feature are you thinking of allowing the developer to just modify the template that gets shown on event click or modify the entire behavior that occurs on an event click?

@HaithemMosbahi
Copy link
Owner Author

I've been thinking of allowing the developer to modify the template.
The scheduler already dispatches events like click on event, click on day, change of view, etc. So the developer can do whatever he wants by listening to these events : like opening a dialog or navigating to new page.
However, I thought that it would be nice if the scheduler comes with ready to use templates which simplify the developer's task. These templates are also web components that can be overridden easily.
A simple example to illustrate the idea :

 <scheduler-component
          default-view="month"
          editable week-numbers>
       <scheduler-view-element> 
           <!-- for example the default template of this element is a dialog that
              gets shown when the user click on event,
              with the title of event as header, etc. -->
        </scheduler-view-element>
        <scheduler-create-element>
              <!-- The default behavior of this element is a dialog that gets shown
              when a user select a slot from the  scheduler  -->
              <template>
                  <!--  The developer can provide the template (content) of this element, 
                  for example an input for the event's title and a text area
                  for the event's description--> 
             </template>
       </scheduler-create-element>
 </scheduler-component>

What do you think ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants