How to order ag-Grid and AdapTable menu items - datagrid

We are using ag-Grid (React version) integrated with AdapTable.
Is there a way to sort or order the context menu so that our custom menu items appear first, followed by the AdapTable ones and then ag-Grid ones after that?
I can see how to choose which menu items should appear and how to stop some from displaying but not how to order the sections.

Do it via the contextMenuOrder property in User Interface Options
You will want
adaptableOptions.userInterfaceOptions = {
columnMenuOrder: ['user', 'adaptable', 'vendor']
};
See: https://docs.adaptabletools.com/docs/adaptable-options/user-interface-options
General menu documentation at: https://docs.adaptabletools.com/docs/user-interface/column-menu#items-order

Related

Create custom Popup in Ionic App

I try to create custom Popup in my Ionic App, I try to modify using Ionic CSS in to full fill my requirement but don't get success. Please help me or suggest me if any third party CSS available which i can edit and full fill my requirement.
Proposed Design
Have a look at ionic ModalController it can be used to create custom popup along with custom template rather customizing Alert Controller. All you have to do is create a normal ionic page using ionic generate page <pageName> then using ModalController inflate the template and present the pop up to user. Read this thread to create full flexed pop up that match up your requirement. This is how you can add animation to models.
constructor(public modalCtrl: ModalController) {
}
let profileModal = this.modalCtrl.create(Profile);
profileModal.present();

Web Component Is there any paper-checklist-filtering available?

Hi guys I'm looking for a Polymer-type checklist filtering element: http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/functionality/filtering/checklist-filtering
There would be a list with checkboxes and maybe a select all item on top. And then there will be like a paper-input on top that allows filtering of items below.
I can hack together a checklist-filtering component using paper-input and iron-dropdown. Maybe I would make something like this https://github.com/samccone/paper-typeahead, assuming that nothing is available as of now.
No.
Most of existing and shared Custom Elements can be found at:
Component Kitchen
Custom Elements IO
There's also an alternate Material Design Library with elements that you could reuse to build your custom element :
ExpandJS

How to create Configurable header and footer in plone?

Is there any way that I can create a Configurable footer and Header from plone admin?
Header Configuration is for adding/edting menus for a website.
Footer Configuration is for adding/edting some url name.
Also I need to have a logo at top left and the logo is also editable from plone admin.
Yes, there is a a way: Instead of relying on viewlets Plone ships with for the header- and footer-sections of a site, you can use portlets instead.
The addon "Products.ContentWellPortlets" will alow you to assign portlets also in top- and bottom-area, not only in left- and right-column.
For example, to add a logo, you can then assign a static-text-portlet, edit it just like a conventional page-type, insert a picture, it'll be also an ordinary image-item of the side, not a hard-to-customize ZMI-resource.
There is an addon, removing the viewlets and adding sample portlets in header and footer instead as a starting point (disclaimer: I'm the author): adi.simplestructure. You can give it a try, if you're lazy ;)
In the header, the menu is autogenerated for you by Plone depending on the content, but you can turn this off by:
Go to http://localhost:8080/[yoursiteId]/portal_properties/site_properties/manage_workspace
Check the checkboxes to the right of both disable_folder_sections and disable_nonfolderish_sections
Hit 'Save' at the bottom
Now you can go to http://localhost:8080/[yoursiteId]/portal_actions/portal_tabs/manage_workspace and add more menu items (copy and paste the one that's already there if you like)
For the footer, take Mathias' suggestion above: https://github.com/4teamwork/ftw.footer or perhaps collective.doormat might suit you better - you'll have to experiment with that.
For the logo see this page in the Plone docs. I can see that you might feel it should be easier, but this shouldn't be something you do every year (if your organization wants rebranding), right?
some other packages for editing your menuitems in the header:
https://plone.org/products/collective.portaltabs
https://pypi.python.org/pypi/quintagroup.plonetabs (more info on what this does in our setup: https://admin.kuleuven.be/icts/english/wms-en/extra/edit-header-links)
for our footer we use:
https://pypi.python.org/pypi/collective.phantasy (this allows layout adjustment through the web, more info on what this does in our setup: https://admin.kuleuven.be/icts/english/wms-en/extra/edit-layout)

collective.tabr kupu modification

I am using the collective.kuputabs module and have added the collective.tabr add-on so that I can create a page with multiple tabs. It works fine. However, I see bullets beside the tabs and I want to delete them. Here is a snap shot of how it looks:
Where will the code for this be stored?. Tabs is a library in Kupu Visual Editor.
Use Firebug to explore the CSS, then override it in ploneCustom.css (ZMI>portal_skins>custom) or your own custom theme product.

Put Links at the End of a Page ( Drupal)

Is there a module in Drupal that allows me to put link at the end of a page?
http://lh6.ggpht.com/_SDci0Pf3tzU/Sfm7vF_MSiI/AAAAAAAAEtY/VX3BXaMOfSM/s400/linksatend.jpg
I tried to use menu and put it as a block at the footer, but the menu items are arranged vertically, instead of horizontally.
Is there anyway to do it without ( preferably) touching the CSS and HTML?
changing the menu items from vertically to horizontally is a matter of 1 or 2 css rules. which is why i doubt that there is a module for this. if you would post a link to your site, or the html + css, i could help with the css.
Links at the end of the page can be controlled by a few different things.
First, check the Blocks administration and see if there is a content area for the footer. Maybe there is a block there that is controlling these links.
Next, depending on well the theme is built, check the configuration options under Admin > Site Building > Themes > Conigure > (Your theme). Many have options to change what links display in the footer.
Lastly, check the page.tpl.php. They could also be hard-coded in the template (which is bad) and edited from there.
In terms of answering your question about 'a module to alter links', you can see that since the links can be controlled from different places, a module just for this purpose would be pointless. The correct way is to set the appropriate options in template.php so it can be configured in your theme settings.
You might have some luck using the Nice Menus module - it's intended to create animated menus but if you give it a flat menu tree, it might be close enough to what you want. If that doesn't work, there's about 100 modules dealing with navigation.
Still, the best way would be to place the menu's block in the footer and modify the theme to flatten it with CSS.
Assuming you don't won't to touch the theme, maybe because you're using an unmodified contrib theme, you can use either of two approaches:
create the block by hand as a custom HTML block, which gives you full control over the contents. The main downside is that you'll have to maintain it by hand instead of using admin/build/menus
create a PHP block, either custom (boo !) or in your site-specific module (better), to generate a block with markup appropriate for the theme you're using, based on the actual primary links, which you obtain from menu_primary_links(). Downside it that you have to create a site module if you don't already have one, or that you'll have to enable the PHP filter if you create it as a custom block.
This being said, I think you'd still be better off modifying the theme if it's a custom one, or creating a sub-theme for the theme you're using if it's a contributed one. It will be less work and, this being a matter of appearance, falls rather in theme scope than in module scope.

Resources