Mashup Question

733 views
Skip to first unread message

Brook Warner

unread,
Sep 13, 2012, 7:13:28 PM9/13/12
to devtarge...@googlegroups.com
Loving the Mashups!

Wondering if anyone would be able to point me in the right direction to add a "Story Type" link to the "Actions" Dropdown that is found on each card?

Many thanks

Oleg Seriaga

unread,
Sep 14, 2012, 5:04:11 AM9/14/12
to devtarge...@googlegroups.com
Hi Brook,

Thanks for good words.

As I understood it is required to extend actions menu on 'new look' view.
Unfortunately there is no direct and documented way to do it for now. We suppose to add this possibility in future. 

But you can add Info Block or Tab with any content. 
Please find some examples below

var renderContent = function ($contentElement, context) {
    //$contentElement is jquery content element for my red control and context contains entity type and entity id
    $contentElement.append('This is my content for ' + context.entity.type + ' #' + context.entity.id);
};

var renderHeader = function ($headerElement, context) {
    //$headerElement is jquery header element for my red control and context contains entity type and entity id
    $('.ui-label', $headerElement).css({ "color":'red' });
};

//Append my controls to user story view
tau.mashups.addDependency('tp/userStory/view')
    .addMashup(function (view) {
        view.addTab('Red Tab', renderContent, renderHeader)
            .addBlock('Red Block', renderContent, renderHeader);
    });

//Append my controls to bug view
tau.mashups.addDependency('tp/bug/view')
    .addMashup(function (view) {
        view.addTab('Red Tab', renderContent, renderHeader)
            .addBlock('Red Block', renderContent, renderHeader);
    });

var onViewRendered = function($element, context) {
    //I don't need the switcher to old look since I fell in love with new one :)
    $element.find('.tau-look-switcher').hide(); //find and hide switcher to old look
};

tau.mashups.addDependency('tp/userStory/view')
    .addMashup(function (view) {
        //sign up here on render event for user story view
        view.onRender(onViewRendered);
 });


Please let me know about any questions

Phil Hazelton

unread,
Jan 23, 2013, 10:19:54 AM1/23/13
to devtarge...@googlegroups.com
Hi Oleg - these undocumented functions have been very useful to us, are there any plans to document the full set for general usage?


Thanks, Phil

Oleg Seriaga

unread,
Jan 23, 2013, 10:22:42 AM1/23/13
to devtarge...@googlegroups.com
Hi Phil

Yes, sure. We are working on that right now. Unfortunately I can't give exact dates and estimations right now. 

Thanks,
Oleg
--
Best regards,
Oleg Seriaga.

alis...@justyoyo.com

unread,
Oct 6, 2014, 11:54:29 AM10/6/14
to devtarge...@googlegroups.com
Sorry to resuscitate such an old thread, but is there anywhere to look for documentation of this sort of stuff?
Reply all
Reply to author
Forward
0 new messages