Sign Up

Hey, Dev!
Are you looking for a forum full of active developers to help you?
So if you want to:
➡️ Get answers for your development issues
➡️ Help others
➡️ Write an article
➡️ Get rewarded for your active participation
Then this place is just for you and it is 100% FREE.

Have an account? Sign In


Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

OrclQA.Com

OrclQA.Com Logo OrclQA.Com Logo

OrclQA.Com Navigation

  • Ask Question
  • Write a Tutorial
  • Online Courses
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Blog
  • New Questions
  • Tutorials
    • Oracle
    • Oracle Apex
    • Python
  • Tags
  • Users
  • Badges & Points
  • Image to Base64
  • PL/SQL Beautifier
  • Ask Question
  • Write a Tutorial
  • Online Courses
  • About
  • Questions
  • Answers
  • Best Answers
  • Followed Questions
  • Favorite Questions
  • Posts
  • Comments
  1. Asked: June 26, 2021

    How to change background color dynamically in cards region?

    Ashish Sahay

    Ashish Sahay

    • Oracle ACE Associate
    • 0 Questions
    • 29 Answers
    • 1 Best Answer
    • 204 Points
    View Profile
    Ashish Sahay Professional Oracle ACE Associate
    Added an answer on June 26, 2021 at 5:38 pm
    This answer was edited.

    Hi there, In the card region, we don't have declarative option to change color dynamically, but we can use the custom CSS option available in it. Add a column for color select case when deptno = 10 then 'has-bg-color-red' when deptno = 20 then 'has-bg-color-yellow' else 'has-bg-color-blue' end colorRead more

    Hi there,

    In the card region, we don't have declarative option to change color dynamically, but we can use the custom CSS option available in it.

    • Add a column for color
    select
    case when deptno = 10 then
    'has-bg-color-red'
    when deptno = 20 then
    'has-bg-color-yellow'
    else
    'has-bg-color-blue'
    end color
    from EMP
    • Change Card setting in region attributes (&COLOR.)

    • At last, write supporting CSS.
    .has-bg-color-yellow{
    background: yellow;
    }
    .has-bg-color-red{
    background: red;
    }
    
    .has-bg-color-blue{
    background: blue;
    }
    
    
    
     
    
    
    See less
    • 4
    • Share
      Share
      • Share on Facebook
      • Share on Twitter

Sidebar

Ask Question
Write a Tutorial

Recent Blog Posts

  • Vinish

    What is Oracle ERP?

  • Vinish

    The Benefits of Unit Testing

  • Vinish

    Java OOPS Concepts MCQ Quiz

  • Vinish

    What is the Best Database to Use?

  • Vinish

    Sending Query Strings in Post Requests in C#

Explore

  • Home
  • Blog
  • New Questions
  • Tutorials
    • Oracle
    • Oracle Apex
    • Python
  • Tags
  • Users
  • Badges & Points
  • Image to Base64
  • PL/SQL Beautifier

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
© 2021 OrclQA.Com. All Rights Reserved.
Privacy Policy - About Us