Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 19:09
    matthewp commented #5389
  • 18:33

    matthewp on can-attribute-observable-2.0.1

    (compare)

  • 18:33

    matthewp on master

    fix(package): update can-attrib… Increase the bundlesize Merge pull request #5394 from c… (compare)

  • 18:33
    matthewp closed #5394
  • 17:59
    matthewp synchronize #5394
  • 17:59

    matthewp on can-attribute-observable-2.0.1

    Increase the bundlesize (compare)

  • 17:42
    matthewp synchronize #5389
  • 17:42

    matthewp on can-observable-bindings-1.3.0

    fix(package): update can-observ… Set new bundle sizes (compare)

  • 17:26
    greenkeeper[bot] labeled #5394
  • 17:26
    greenkeeper[bot] opened #5394
  • 17:26

    greenkeeper[bot] on can-attribute-observable-2.0.1

    fix(package): update can-attrib… (compare)

  • 17:15

    matthewp on can-stache-element-1.0.2

    (compare)

  • 17:15

    matthewp on master

    fix(package): update can-stache… Merge pull request #5387 from c… (compare)

  • 17:15
    matthewp closed #5387
  • 17:15

    matthewp on can-observable-mixin-1.0.3

    (compare)

  • 17:15

    matthewp on master

    fix(package): update can-observ… Merge pull request #5391 from c… (compare)

  • 17:15
    matthewp closed #5391
  • 16:30

    matthewp on type-date

    (compare)

  • 16:30

    matthewp on master

    Document using input[type=date]… Merge pull request #5393 from c… (compare)

  • 16:30
    matthewp closed #5393
Frank Lemanschik
@frank-dspeed
for frontend and backend this will allow to develop modules online without install of dependencys
will save a lot of time
Andrei Balmus
@abalmush
hi guys in canjs 2 I was able to trigger events using can.trigger in canjs 3 we dont have can.trigger
let ViewModel = new can.Map({
        getOrderDetails: function(code) {
            can.trigger(this, {
                type: 'activateOrderDetails',
                detail: {
                    code: code
                }
            });
        }
    });
oh found looks like it’s now dispatch not trigger
Dovid Bleier
@dbleier
how can I grab the value of another field in an on:click call? for example
<div id="updateula" on:click="sendCommand('urllauncher', document.getElementById('urllauncher').value)" class="remoteButton blue span2">Update URL Launcher</div>
document.getElementById('urllauncher').value sends undefined into my viewModel method
Dovid Bleier
@dbleier
I solved it by pushing the value of the desired component to a vm prop, and then pulled it into the on:click. Don't know if that is the best solution.
Kevin Phillips
@phillipskevin
you can use a template variable also
value:to="scope.vars.urllaunchervalue"
Dovid Bleier
@dbleier
ah, good idea
Justin Meyer
@justinbmeyer
@abalmush yeah, it's on the map now I think this.dispatch( ... )
at least it's on DefineMap
Jeroen Cornelissen
@jeroencornelissen
How do you pass a function to a child component in CanJS 4?
myFunction:from=“scope.root.myFunction” won’t work.
In 3.0 something like this worked: myFunction:from=“@myFunction"
Jeroen Cornelissen
@jeroencornelissen

My parent component has a function in it’s VM like this:

myFunction() { … }

My child component has a property in it’s VM like this:

myFunction: { Type: Function }
Jeroen Cornelissen
@jeroencornelissen

Hmmm, only this seems to work, in my parent:

myFunction: {
  get() { return () => { … }
}

Is this how it should work?

Jeroen Cornelissen
@jeroencornelissen
Whoops, nevermind had a typo in my function names… 🤪
Andrei Balmus
@abalmush
thank you @justinbmeyer , can you please help me with one small thing, I’m trying to get validation work as it worked with can.js 2 but for some reasone validate method inside map is missed, that's what I importing:
Screen Shot 2018-02-23 at 6.06.48 PM.png
and here I’m trying to validate:
Screen Shot 2018-02-23 at 6.06.35 PM.png
this is equal to Map
Frank Lemanschik
@frank-dspeed
its now a mixin for can-define you can easy apply it
Eben
@eben-roux
I'm trying to make use of the init function on a DefineMap:
The output seems to do something weird with the input to the new Map(). You'll see that the input argument is split into the individual characters in the console.
What am I missing/doing wrong here?
Flavio Garcia
@piraz
Hello everybody
What is the best way to clear a list?
I'm getting an annoying info, probably caused by on the stache
I'm doing: viewModel.contacts.update([]);
Flavio Garcia
@piraz
Got it
The issue wasn't when clearing the list
was the way it was defined on the stache
{{#each(contacts)}}
fixed the issue
instead of just {{#contacts}}
Julian
@pYr0x
@phillipskevin is there a pre version of your form guide where i can looking into?
Julian
@pYr0x
@phillipskevin is it possible to create a demo of select where the first option is "please choose a month" and it will handle all the other stuff like converters and 2-way-bind
Andrei Balmus
@abalmush
Hello @frank-dspeed, thank you for you message, I tried this and still getting error insude can-validate:
Screen Shot 2018-02-25 at 8.52.05 PM.png
All I’m trying to do is migrate a huge project to CanJS 3 (WEBPACK) from Canjs 2 (JSPM) and have the same validation API as it was in CanJS 2, because we have large amount of form controls which uses validation from Canjs 2
Frank Lemanschik
@frank-dspeed
@abalmush if you want to do it right and fast look into https://donejs.com
its our own Product for this needs
its canjs3 + stealjs + npm
and works most best at present