by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Pi Toolie
    @PiReel
    Too.
    Ill have more when i get off
    Dorian Smiley
    @doriansmiley
    @PiReel cool, I was wondering if there was some higher level method that exposed a signature similar to the legacy register method.
    KIP
    @KipOmaha
    The xtag.create( name, opts)
    or you can also just use it like, xtag.create( opts );
    I was thinking of creating an extension custom for lotusJS and V2
    something like...
    xtag.create( class extends XTagElement.extension("lotusJS") { Definition } );
    In this way we create the specs need for lotusJS and xtag V2.
    From there we can plug in the old specs from v1...I wasn't sure of this strategy though. Is this doable
    KIP
    @KipOmaha
    The power of v2 comes from the extension method that is attached to the XTagElement method. With this we could create an extension specifically for the LotusJS platform.
    Dorian Smiley
    @doriansmiley
    @KipOmaha so currently all custom tags extend LotusHTMLElement which extends HTMLDivElement. Should lLotusHTMLElement extend XTagElement instead? Where is XTagElement defined?
    KIP
    @KipOmaha
    XTagElement is defined anonymously in a scope
    scoped functin
    Dorian Smiley
    @doriansmiley
    @KipOmaha cool, so should LotusHTMLElement extend XTagElement.
    KIP
    @KipOmaha
    You have c9?
    It's on the browser and is buggy if you have it up for long periods of time but...I don't think we will be using it for long.
    In my case I would use an anonymous class such as const myconst = xtag.create( class extends XTagElement{ } );
    I would us this to extend lotusJS
    It doesn't need to be anon
    KIP
    @KipOmaha
    @doriansmiley, hey haven't checked in on your project for a bit apologize. I finally got a message back from the x-tag project lead if your still interested he mentioned that he would be happy to speak with you :)
    Dorian Smiley
    @doriansmiley
    @KipOmaha how goes it? yeah I saw the new release is in beta. I planned to do some testing this week. It would be great to speak with the x-tag lead. I'm interested to learn more about the API changes and where they are going with future releases. I'm working on some new features for Lotus as well. I've have some improved form components and better cross platform support. Also working on improving documentation.
    KIP
    @KipOmaha
    It's been active in the last couple of days, he actually rolled back the build to alpha. Than he put in the fix for camelCasing and made a couple of other changes that I want to check out. The Jasmine test looked good but I set up some components for testing. The core problem with compat with v1 and it's lifecycle method and API though still needs to be discussed with him, currently I do have time to collaborate on it though.
    KIP
    @KipOmaha
    @doriansmiley I put up an enhancement issue => x-tag/core#196
    for lifecycle support in v2. I don't know if I should drop this or not. Is this project on backburners or still going?
    KIP
    @KipOmaha
    trigger application level behavior by mediating the event. Good encapsulation dictates that reusable view components not have knowledge of nor trigger applicaiton level behaviors
    is from the MVW example
    // TODO: we need to replace Lavender.RecordSetEvent.LOAD_PAGE_DATA with a component specific event, like MyAppEvent.LOAD_IMAGE_ASSETS
    I'm about to use event mediation but found this snippet of code.
    So what you mean here is

    Instead of

    this.context.eventDispatcher.dispatch(
    new Lavender.RecordSetEvent(Lavender.RecordSetEvent.LOAD_PAGE_DATA, 
    {recordSet:this.componentInstance.recordSet}));

    use something like

    this.context.eventDispatcher.dispatch(
    new Lavender.RecordSetEvent(MyAppEvent.LOAD_IMAGE_ASSETS, 
    {recordSet:this.componentInstance.recordSet}));
    KIP
    @KipOmaha
    So your accessing the Lavender constructor...or is it a class? In any case, I'm going to assume you didn't mean to replace Lavender's RecordSetEvent method, but the parameters.
    KIP
    @KipOmaha
    By initiating the "instance" of your event in this fashion you avoid exposing local events to the globals?
    Or I mean the framework application.
    KIP
    @KipOmaha
    Also in the example for file upload you have '''
    So data-attribute-my-data-attribute-value will become myAttributeValue
    I thought it would myDataAttrbuteValue
    Or am I just misunderstanding this part?
    Dorian Smiley
    @doriansmiley
    @KipOmaha that comment is super old and needs to be removed
    @KipOmaha it would be myDataAttrbuteValue
    Dorian Smiley
    @doriansmiley
    @KipOmaha be sure to check out the MVW framework for lotus components: lotus-mvw: https://github.com/doriansmiley/lotusJS-MWV/tree/dev. If you plan to build something larger than a single component and want to build an application consisting of several components it's a great alternative to Angular, React, or Vue. It provides mediators for your custom elements, command mapping, etc. There is a pure Javascript sample app here: https://github.com/doriansmiley/lotusJS-MWV/tree/dev/example/sampleApp. I also have a typescript sample here: https://www.dropbox.com/s/zswrqfy3bgefqt1/sampleApp.zip?dl=0. It's an archive as I can't share the repo with you. You wan't be able to install the private packages which is why the node modules directory is included. Lotus MVW was designed from the ground up to support lotus components.
    KIP
    @KipOmaha
    Thanks @doriansmiley, I wanted to try and get the sample app running on there and put the form component in it to see how that worked with event mediation.
    KIP
    @KipOmaha
    Sorry to bother you again, but a quick question. Should I be pulling from the dev branch on the lotusJS and the MVW.
    @doriansmiley
    KIP
    @KipOmaha
    typescript definition for the dexie library is available. I thought I'd let you know @doriansmiley, if your interested in any components that use indexedDB. I haven't done much with it yet, cause of other [testing/implementing] but I think it may be promising. It does support UMD of course too.
    Posted a link above.
    KIP
    @KipOmaha
    Summitt Equilibrium is a project I'm doing for a friend its going to include LotusJS and Cytoscape.
    I thought you'd like to know, if you want details on the implementation and a share link to the dev little me know.
    @doriansmiley
    I meant let me know lol