Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

Tradeoff Widget customization

310000Q947 gravatar image
Question by miguel.romera  (28) | Nov 12, 2015 at 07:53 AM customibmcloudwidgettradeoff-analyticswidgets

I am trying to customize the widget. I am experiencing some issues:

The following variable does not work:

//options-map frame color @map_frame_color : #0a4998; // this one does not work

Could you please add some code to add some buttons in the top bar? Please see my back button.

Could you add another variable to the less template to modify the "Done" button border and "This is my decission" button border?

I am adding some code embedded to the options but it breaks the popup. Could you add some variables to play with the popup width/height and avoid the scrolling bar? Also, I add some inline code like "float:left" but it is removed by the widget. Example:

             Option              option              = new Option();
             option.key                              = projector.id.ToString();
             option.name                             = projector.name;
             option.description_html                 = "<p style='font-size:11px'>" + projector.briefdescription + "</p>";
             option.description_html                 += "<div class='projector-image'>";
             option.description_html                 += "<img src='" + projector.image_small + "' title='projector_image' style='float:left; width:160px;'/>";
             option.description_html                 += "<ul style='font-size:11px;width:200px;float:left;'>";
             option.description_html                 += "<li>" + projector.highlight1 + "</li>";
             option.description_html                 += "<li>" + projector.highlight2 + "</li>";
             option.description_html                 += "<li>" + projector.highlight3 + "</li>";
             option.description_html                 += "<li>" + projector.highlight4 + "</li>";
             option.description_html                 += "</ul>";
             option.description_html                 += "</div>";


Thanks.link text

alt text

capture.png (99.1 kB)
style.zip (1.3 kB)

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

1 reply

  • Sort: 
2700056HV0 gravatar image
Accepted answer

Answer by 6HV0_David_Boaz (561) | Nov 12, 2015 at 08:41 AM

Hi @miguel.romera,

The variables provides an easy mechanism to set css styles. But you can also use specific CSS rules to modify any element you need. You determine the rule selector using the browser debug tools (e.g., F12 in Chrome). Append the new rules at the bottom of your less.

  • To change the map border color: .moov .map .frame {}

  • To change the done button border color: .moov .moovContainer .topHeader .finalDecisionArea input {}

  • To change the 'this is my decision': .moov .solutionTooltip .finalBtn{}

  • the tooltip description: .moov .solutionTooltip .description{}

The current implementation does not support the requirement to enable adding new buttons to the top bar. We will consider adding this functionality to future versions.

We appreciate your feedback. please continue to post the requirements you desire. These are important input for us.

David

Comment
miguel.romera
Ateret Anaby Tavor

People who like this

  2   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

73 people are following this question.

Answers

Answers & comments

Related questions

Error updating problem columns: neColumn is not defined 1 Answer

Errors trying to integrate Tradeoff Analytics widget into application 4 Answers

Tradeoff Analytics - How do i change header_background_color? 3 Answers

Clicking through to the final tip in the Tradeoff Analytics Widget v2 Help modal leaves the screen unclickable. Can the help tips be disabled? 0 Answers

Clicking through the Help tips in the Tradeoff Analytics Widget v2 leaves the screen unclickable. Can this be fixed or can the help be disabled? 2 Answers

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges