Author |
|
ffgabriel Newbie
Joined: 19 September 2016 Location: Brazil
Online Status: Offline Posts: 5
|
Posted: 21 November 2016 at 6:11am | IP Logged
|
|
|
Hello, I would like to know is it possible to add new item on the menu, thanks!!
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 21 November 2016 at 6:18am | IP Logged
|
|
|
Sure, please see Adding new tab to main menu documentation page.
Hope this helps!
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Manjast Newbie
Joined: 09 September 2015 Location: Austria
Online Status: Offline Posts: 32
|
Posted: 15 December 2016 at 12:25am | IP Logged
|
|
|
Hello Igor,
I have also added a new menu tab in the menu bar. This works very well.
Can I add a css file in the index.php in public function Init()?
For example with $this->AddCssFile('path');
Now I must do this hardcoded and add the style block in the templates/html file.
Best regards.
|
Back to Top |
|
|
Manjast Newbie
Joined: 09 September 2015 Location: Austria
Online Status: Offline Posts: 32
|
Posted: 15 December 2016 at 1:51am | IP Logged
|
|
|
Or I have added an input field and would like to include the datepicker function.
I have added the code: <input id="datepicker" spellcheck="false" readonly="readonly" class="date input hasDatepicker" type="text">
And the following code in the end of the HTML file:
<div data-bind="simpleTemplate: {}">
<script>
$( function() {
$( "#datepicker" ).datepicker();
} );
</script>
</div>
But when I click on the input field, the datepicker will not open.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 15 December 2016 at 2:43am | IP Logged
|
|
|
Hi,
You can add css styles in exactly the way you've written above:
Code:
$this->AddCssFile('path'); |
|
|
Script block placed in html template couldn't be executed because it is bound to js object via knockoutjs framework. You can place all needed js code into this object. Here you can see the example how to bind js-object to html template.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Manjast Newbie
Joined: 09 September 2015 Location: Austria
Online Status: Offline Posts: 32
|
Posted: 15 December 2016 at 3:17am | IP Logged
|
|
|
Thank you Igor, this works very well
I hope you can help me with the datepicker function. It is also integrated in the calender tab, when I insert a new event. But how can I integrate it in my own template? This will be fine.
|
Back to Top |
|
|