-
Re: Where are the jive.tile.* functions documented
wb9tpg Apr 1, 2015 6:19 AM (in response to wb9tpg)Ryan Rutan, where can I find the "lightweight tile API" documented?
-
Re: Where are the jive.tile.* functions documented
pawans Apr 1, 2015 6:41 AM (in response to wb9tpg)I guess this was suppose to be the documentation mentioned on jive-sdk's github repo --> Jive SDK Index
But it directly shows the code files where the methods are.
So we ended up exploring the jive-sdk code base to understand the methods.
-
Re: Where are the jive.tile.* functions documented
wb9tpg Apr 1, 2015 7:17 AM (in response to pawans)1 person found this helpfulThese functions are used in the SDK examples but they're not defined there. I used Chrome Develop Tools to look how they're all defined in Jive and came up with this list of functions but would like to see documentation on them. The source for these are not in the SDK that I can find.
- onOpen
- close
- getContainer
- getIdentifier
- sampleData
- getOauth2CallbackUrl
- openOAuthPopup
- getTicketId
- getPrivateProps
- updatePrivateProps
- getExtendedProps
- updateExtendedProps
- doAction
-
Re: Where are the jive.tile.* functions documented
pawans Apr 1, 2015 7:32 AM (in response to wb9tpg)Oh yeah, there is no clear documentation for this.
Few of these are mentioned in Tiles rest apis too.
After understanding those I tried same concept on jive.tile.*
But agreed, right now all this requires lot of digging without documentation.
-
Re: Where are the jive.tile.* functions documented
Ryan Rutan Apr 1, 2015 7:48 AM (in response to pawans)Aron Racho Yuval Z - I see Pawan referencing the auto-gen docs..and Gary reverse engineered outputs. Is there a way we can make any updates somewhere for this to be better documented? I know its throwing stuff on the pile, but just wanted to take the moment to bring it to your attention.
Thanks Pawan/Gary for the open discussion!
-
Re: Where are the jive.tile.* functions documented
yuval.zApr 1, 2015 8:43 AM (in response to Ryan Rutan)
Good call. This is a gap in our documentation. I'll check in with Aron about addressing this.
-
Re: Where are the jive.tile.* functions documented
pawans Apr 1, 2015 9:21 AM (in response to yuval.z)Thanks Yuval ZDue to the custom tiles introduced in 8c5, tiles have become more powerful concept in jive compared to what it was before. So worth putting more documentation on this -
Re: Where are the jive.tile.* functions documented
tahir_mirza Sep 8, 2015 4:55 AM (in response to yuval.z)Hi Yuval,
Could you please mention the link to documentation of these methods for tile here.
That would really be helpful.
-
-
-
-
Re: Where are the jive.tile.* functions documented
wb9tpg Apr 12, 2016 8:17 AM (in response to wb9tpg)Well it's been over a year; have these been documented somewhere?
-
Re: Where are the jive.tile.* functions documented
Ryan Rutan Apr 12, 2016 8:23 AM (in response to wb9tpg)1 person found this helpfulTile API & Development FAQ - has a list of the main functions available in the jive.tile.* packages. For some reason the Open/Close methods aren't there..but will get that fixed in a sec.
-
-
-
-
Re: Where are the jive.tile.* functions documented
siddhartha107 May 17, 2016 9:42 PM (in response to wb9tpg)Hey Gary,
I have the similar query. I tried couple of options but could not get any success.
Could you give some hints/answers/references where I can achieve if a tile is placed in a NARROW or WIDE column.?
Thanks.
Sidd
-
Re: Where are the jive.tile.* functions documented
siddhartha107 May 19, 2016 3:33 AM (in response to wb9tpg)I have tried the tile rest api.
it gives the displayWidth as the one of the return parameters, but the value is 'allowed displaywidth' which you would have mentioned in the definition.json and not the current tile column width.
jive.tile.onOpen(function(options) {
osapi.jive.core.get({
v: "v3",
href: "/tiles/"+options.tileInstanceId}).execute(function(data){
console.log(data); // here is the return object -> content.definition.displayWidth
});
cc:
-
Re: Where are the jive.tile.* functions documented
jliano Dec 2, 2016 5:15 PM (in response to siddhartha107)Did you ever figure out a way to get this information?
-
Re: Where are the jive.tile.* functions documented
jgoldhammer Jun 19, 2017 10:56 PM (in response to jliano)1 person found this helpfulLate answer, but you can get the information via pages api, loop through the avaialble pages to find the tile instance you are currently in and determine the layout via the column number and used layout (e.g. wide, narrow_wide etc.) for the page.
A little bit chunky, but it works for me...
-
Re: Where are the jive.tile.* functions documented
fusion35 Aug 1, 2017 6:55 AM (in response to jgoldhammer)Perhaps an easy way could be to call the v3 tile service. Something like :
osapi.jive.corev3.tiles.getTileInstance({"id":options.tileInstanceId}).execute(function(res) {
console.log(res);
});
response has a column property with a numeric value
0: wide
1: narrow
-
-
-