Read the statement by Michael Teeuw here.
Cal EXT3 - understanding transforming
-
@_V_ transforming, you must ALWAYS return the event, modified or not
-
Hello Sam
Thanks for the input.
Ok now what would this search method mean for “title”Like, what is it the case of the EXT3 cal module?
It says “title”?
Anybody knows about my last question for icon change too?Thanks
-
@_V_ from his readme
-
@_V_ what do you mean for title? We just searched title
If you want to change it. Then do thatev.title=‘new string’
Same with symbol
-
@_V_ you can change any property of the event
-
I get the idea but since Im quite new to this, I cant follow completely.
Again the exampleeventTransformer: (ev) => { if (ev.title.search("John") > -1) ev.color = "blue"; return ev; };
Now you told me, “search” is a look up in form of “if contains” - this means if it contains the value, it will give out a value bigger than -1 and the effect will be set; other wise it will return -1 and the event stays unedited, correct?
This would also mean, I have to set up every possible event title class inbefore.
If I want to change/assign a specific symbol is a thing I dont understand.
I use the Iconify function from the module - do I have to put in a link to the desired symbol now or what is it I have to enter?
I could also imagine that I have to download the symbols and put in a directory to make the module be able to access them?Thanks a lot
-
If I search this field, and find ‘John’
Then
I change the event color
ev.color=I could change to symbol the same way
ev.symbol=. Whatever symbol nameYou are writing code here
The filter routine sees every every, one at a timeYou can have more than one if stmt
Can use if else if else, use a switch /case logic block