Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 02 10:48
    vegegoku milestoned #735
  • Dec 02 10:47
    vegegoku milestoned #734
  • Dec 02 10:47
    vegegoku milestoned #733
  • Dec 02 10:46
    vegegoku milestoned #732
  • Dec 02 10:45
    vegegoku milestoned #731
  • Dec 02 10:44
    vegegoku milestoned #730
  • Dec 02 10:44
    vegegoku milestoned #729
  • Dec 01 09:59
    sblommers starred DominoKit/domino-jackson
  • Nov 30 13:52
    jhickman opened #735
  • Nov 30 13:48
    jhickman opened #734
  • Nov 30 13:44
    jhickman opened #733
  • Nov 30 13:38
    jhickman opened #732
  • Nov 30 13:33
    jhickman opened #731
  • Nov 30 13:29
    jhickman opened #730
  • Nov 29 17:27
    nchamouard edited #729
  • Nov 29 12:35
    vegegoku closed #701
  • Nov 29 12:34

    vegegoku on development

    fix: #701 Disabling DataTable d… (compare)

  • Nov 29 11:57
    vegegoku closed #702
  • Nov 29 11:57
    vegegoku commented #702
  • Nov 29 11:56

    vegegoku on development

    fix: #702 DataTable loses selec… (compare)

tsatatwer
@tsatatwer
I can added it to other panels BUT not canvas .
Colin Alworth
@niloc132
@tsatatwer what do you mean by adding it to canvas?
it can hover over canvas when the user activates it (right click on the canvas and then show it above the canvas for example)
Ahmad K. Bawaneh
@vegegoku
You should be able to add it to any HTMLElement, and canvas is an HTMLElement
tsatatwer
@tsatatwer
Ok I will going to test it with right click on canvas.
tsatatwer
@tsatatwer
@vegegoku I would appreciated if you give a simple example how to attach menu to canvas , I tried it but the meu is not showing .Thanks in advance
Colin Alworth
@niloc132
@tsatatwer can you give the basics of what you are trying to do, a small code sample showing this? there are multiple different ways i can interpret what you are requesting, and seeing your code will help to understand
tsatatwer
@tsatatwer
@niloc132 what I am doing is just to show the menu over a canvas that is , the menu I copied from demo and using right click on the canvas
canvas.oncontextmenu  =  new Element.OncontextmenuFn()  {
                        @Override
            public Event onInvoke(Event evt) {

                 evt.stopPropagation();
                   evt.preventDefault();    

                 canvas.appendChild(
        Card.create("CONTEXT MENU", "Menu can be used as a right click context menu.")
                .setCollapsible()
                .appendChild(
                    DominoElement.div()
                        .setHeight("600px")
                        .setWidth("100%")
                        .setBorder("2px dashed #cecece")
                        .setTextContent("Right click to open the context menu")
                        .css("demo-context-menu-target")
                        .setDropMenu(
                            Menu.<String>create()
                                .setIcon(Icons.ALL.file_mdi())
                                .setTitle("Files")
                                .setContextMenu(true)
                                .setDropDirection(new TopMiddleDropDirection())
                                .appendAction(
                                    Icons.ALL
                                        .folder_key_outline_mdi()
                                        .size18()
                                        .clickable()
                                        .addClickListener(
                                            evt -> {
                                              Notification.create("Action clicked").show();
                                            }))
                                .appendAction(
                                    Icons.ALL
                                        .folder_heart_outline_mdi()
                                        .size18()
                                        .clickable()
                                        .addClickListener(
                                            evt -> {
                                              Notification.create("Action clicked").show();
                                            }))

                         ................................................................................................................................

                return  evt;
            }   
           };
Ahmad K. Bawaneh
@vegegoku
I just tested thje same code from the demo site on a canvas and it just work as expected
image.png
remove that wrapping of the menu inside new Element.OnContextmenuFn .. I am not sure where is that coming from
but you dont need it... plus ... if you want the menu on the canvas ..why are you copying all that which creates a card, append a div to the card, thenset the menu on the div as a context menu. and then you never attach any of those to the dom, all you are doing here is creating elements in the memory thats all
Ahmad K. Bawaneh
@vegegoku
ok, you are actually appending themto the canvas .. but only when you right click on it, and this does not count as a right click on the div inside the card
just create a canvas , wrap it as a DominoElement and set the meu for it.
DominoElement.of(Elements.canvas())
                                        .setHeight("600px")
                                        .setWidth("100%")
                                        .setBorder("2px dashed #cecece")
                                        .setTextContent("Right click to open the context menu")
                                        .css("demo-context-menu-target")
                                        .setDropMenu(
                                                Menu.<String>create()
                                                        .setIcon(Icons.ALL.file_mdi())
                                                        .setTitle("Files")
                                                        .setContextMenu(true)
                                                        .setDropDirection(new TopMiddleDropDirection())

                                                        .setSearchable(true)
                                                        .appendChild(
                                                                MenuItem.<String>create("New ...")
                                                                        .setKey("new-key")
                                                                        .setValue("new-value"))
                                                        .appendChild(
                                                                MenuItem.<String>create("Open")
                                                                        .setKey("open-key")
                                                                        .setValue("open-value")
                                                                        .addLeftAddOn(
                                                                                FlexItem.of(Icons.ALL.folder_open_mdi().size18())))
                                                        .appendChild(
                                                                MenuItem.<String>create("Close")
                                                                        .setKey("close-key")
                                                                        .setValue("close-value")
                                                                        .addLeftAddOn(FlexItem.of(Icons.ALL.close_box_mdi().size18())))
                                                        .appendChild(
                                                                MenuItem.<String>create("Close all")
                                                                        .setKey("close-all-key")
                                                                        .setValue("close-all-value")
                                                                        .addLeftAddOn(
                                                                                FlexItem.of(Icons.ALL.close_box_multiple_mdi().size18())))

                                                        .addSelectionHandler(
                                                                menuItem ->
                                                                        Notification.create(
                                                                                        "Key : "
                                                                                                + menuItem.getKey()
                                                                                                + ", value : "
                                                                                                + menuItem.getValue())
                                                                                .show())))
tsatatwer
@tsatatwer
Ok I will test your suggestion Canvas warp as DominoElement
tsatatwer
@tsatatwer
public Style<E,T> missing in the RC domino-ui-1.0.0-RC13-javadoc ???
How can I access style of Label object outside addChild method
Ahmad K. Bawaneh
@vegegoku
you do either .getStyle() or .styler(style-> {})
tsatatwer
@tsatatwer

I create a Label object like this

Label lbl = Label.createDefault("DEFAULT");

Can use this lbl.getStyle()

Ahmad K. Bawaneh
@vegegoku
Label test = Label.createDefault("test");
                  Style.of(test).setBackgroundColor("red");
or the Styleer if you dont want to brak out of the builder
Label test = Label.createDefault("test")
                          .styler(style -> style.setBackgroundColor("red"));
tsatatwer
@tsatatwer
org.dominokit.domino.ui.style.Style cannot be resolved. It is indirectly referenced from required .class files ??? what I am missing here
tsatatwer
@tsatatwer

I checked if the org.dominokit.domino.ui.style.Style class exist:

Untitled.png

Ahmad K. Bawaneh
@vegegoku
How do you pull the dependencies... it is in domino-ui-shared
tsatatwer
@tsatatwer
I got dependencies from here and I used maven central to download the latest jars for my project I use gwt-eclipse plugin
Version : domino-ui-1.0.0-RC13.jar
tsatatwer
@tsatatwer
What are missing ???? the project in eclipse shows no missing libraries ??
tsatatwer
@tsatatwer
OK I added domino-ui-shared and now it is OK it is a complicated operation done moving large number of classes from the project not domino-ui to domino and it is not maven project all libraries must manually added very tedious work any way I hope to finished the migration and post screenshots by then ...thanks for the support.
tsatatwer
@tsatatwer
Hi in order to convert from UiBinder to domino-ui I am modifiying the existing classes of project these extend Composite so what is suggested to extend if at all .
Ahmad K. Bawaneh
@vegegoku
Domino-ui does not work with the uibinder, and we will be working on a templating engine soon
But if you just want to make a custom component then domino-ui components extends from BaseDominoElement
tsatatwer
@tsatatwer
No I do not like to keep uibinder I would like to convert theme to domino-ui without uibinder , so you suggest extending BaseDominoElement instead ??
Ahmad K. Bawaneh
@vegegoku
Yes extending BaseDominoElement is how you build a composite in domino-ui
The components already in domino-ui are all good samples on how to do it, see Label or badge for example
tsatatwer
@tsatatwer
OK indeed many good well presented examples .
The migration is very hard because of so many classes should be modified BUT it is the very attractive and productive to have domino-ui because it is modern and well suited for GWT .
bschmelcher
@bschmelcher
Hi @vegegoku is there an approximate plan when the RC14 for domino-ui will be released? I'm asking because of DominoKit/domino-ui#664 which still is a major issue for us
Ahmad K. Bawaneh
@vegegoku
I will try to release it today . tomorrow max
bschmelcher
@bschmelcher
that's great, thank you!!
Ahmad K. Bawaneh
@vegegoku
@/all
Dears,
Domino-ui 1.0.0-RC14 have been released you can checkout the release notes here
https://github.com/DominoKit/domino-ui/releases/tag/1.0.0-RC14
schubec
@schubec_twitter
@vegegoku @rjeeb thank you!!!!!!! a thousand times!
Frank Wynants
@FrankW76

Those Exciting New Features look Exciting :-)

Resize and pin is something we can really use

Will you update https://demo.dominokit.org/datatable with some examples of these new features?
Ahmad K. Bawaneh
@vegegoku
We will just need to find some spare time to do so.
Daniel Korbel
@masterdany88
Hi. I've problem with unit tests, where I use icons from domino:
Caused by: java.lang.NullPointerException: Cannot invoke "elemental2.dom.HTMLDocument.createElement(String)" because "elemental2.dom.DomGlobal.document" is null How I can inject/mock document?
Colin Alworth
@niloc132
in short, you can't - you'd need to mock out all of these objects
why not use GWTTestCase for tests that depend on being run from a client (icons dont work on the jvm in any real way, do they?)
Daniel Korbel
@masterdany88
I have list of application pages link to build menu, one of this parameters is icon.
I have some logic for building that menu, base on environment it runs. I wanted to test it by unit.
I see I would need to move this icons outside then.
Colin Alworth
@niloc132
at least as it stands, yes, since the icon knows its own ... icon, it isnt just a name for it