Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

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

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9008021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:50:38+00:00 2026-06-16T01:50:38+00:00

I am trying to understand someone else’s codes. He has task.prototype.taskAttributes = { ‘header’

  • 0

I am trying to understand someone else’s codes. He has

task.prototype.taskAttributes = {
  'header' : [
    {'name' : 'display_type', 'display' : 'Display Type', 'type' : 'select', 'options' : {
      'default' : 'Default',
      name1 : 'Peter',
      name2 : 'Ted',
     }
    },
    {'name' : 'background', 'display' : 'Background', 'type' : 'image'},
    {'name' : 'background_position', 'display' : 'Background Position', 'type' : 'text'},
    {'name' : 'credit', 'display' : 'Background Credit', 'type' : 'text'}],

  'input' : [
    {'name' : 'display_type', 'display' : 'Display Type', 'type' : 'select', 'options' : {
      'default' : 'Default',
      title1 : 'manager',
      title2 : 'employee'}
    },
    {'name' : 'background', 'display' : 'Background', 'type' : 'image'},
    {'name' : 'background_position', 'display' : 'Background Position', 'type' : 'text'},

  'image' : [{'name' : 'column', 'type' : 'select', 'options' : ['', 'left', 'right']}]
}

I am not sure if ‘header‘ and ‘input‘ are the object properties?
What are the attributes under ‘header‘ and ‘input‘

What do these do:

{'name' : 'display_type', 'display' : 'Display Type', 'type' : 'select', 'options' : {
  'default' : 'Default',
  name1 : 'Peter',
  name2 : 'Ted',
 }
},
{'name' : 'background', 'display' : 'Background', 'type' : 'image'},
{'name' : 'background_position', 'display' : 'Background Position', 'type' : 'text'},
{'name' : 'credit', 'display' : 'Background Credit', 'type' : 'text'}],

I thought to declare object properties, we do

attribute={header:'header', input:'input'}

and I am not sure why he has so many atttriubes.

Thanks for the help guys!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:50:39+00:00Added an answer on June 16, 2026 at 1:50 am

    header and input are indeed the object properties of taskAttributes, along with image as well.

    taskAttributes = {
      // Three object properties, each is an array
      header: [],
      input: [],
      image: []
    }
    

    Each of those is itself an array [] of objects {} with properties like name, display, type. This addresses the “what do these do” part of your question.

    // Example object element of the parent attribute arrays:
    // There are multiples of these objects for each property header, input, image
    {'name' : 'background', 'display' : 'Background', 'type' : 'image', 'options': {...}}
    

    So to access the first name beneath header for example, you would access its array key [0] as in:

    taskAttributes.header[0].name
    // 'displayType'
    
    // And the third array element [2]
    taskAttributes.header[2].name
    // 'credit'
    

    There is one further level of nesting on the first array element of both headers and input which looks like:

    // Property named options is an object...
    'options' : {
      'default' : 'Default',
      title1 : 'manager',
      title2 : 'employee'
    }
    

    That is yet another object referenced as options for each of those.

    taskAttribtues.header[0].options.title1
    // 'manager'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand someone else's codes...he has the following: var positionAt =
I have the following class written by someone else that I'm trying to understand
I'm trying to understand InstallShield (2009)/InstallScript on the fly, because I'm modifying someone else's
I'm a new programmer trying to understand someone else's code. The program's purpose is
I'm trying to learn shell scripting, and I need to understand someone else's code.
So, I inherited some code (below) from someone else and I'm trying to understand
I'm trying to understand someone else's Perl code without knowing much Perl myself. I
I'm trying to understand what happend when someone casts an object of one specific
Ok, I have this prototype that was written by someone else in C# and
Can someone help me understand what I'm doing wrong with this method? I'm trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.