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 7978833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:35:56+00:00 2026-06-04T09:35:56+00:00

I have the following subclass, derived from ContentPane: define([ dijit/layout/ContentPane, dojo/_base/declare ], function (ContentPane,

  • 0

I have the following subclass, derived from ContentPane:

define([
        "dijit/layout/ContentPane",
        "dojo/_base/declare"
    ],

    function (ContentPane, declare) {
        var view = declare("client.View", ContentPane, {
            html: null,
            constructor: function (args) {
                declare.safeMixin(this, args);
                if (this.html !== null) {
                    this.set("content", this.html);
                }
            }
        });
        return view;
    }
);

Now, the following code throws TypeError on “this.set(“content”, this.html);” line:

var html = "<div>Hello</div>";
var view = View(html);

How should I set content of a ContentPane properly?

  • 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-04T09:35:57+00:00Added an answer on June 4, 2026 at 9:35 am

    Ken Benjamin answered my question on Dojo Community (http://dojotoolkit.org/community/):

    You are trying to set the content too early in the widget lifecycle. Try doing it in postCreate instead of constructor.

    Read more about the widget lifecycle here: http://dojotoolkit.org/documentation/tutorials/1.6/understanding_widget/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following tzinfo concrete subclass definition: from datetime import datetime, timedelta, tzinfo
I have the following subclass: class UserProfile(User): user = models.OneToOneField(User, parent_link=True) And an UserProfileAdmin:
I have a subclass of QTableWidget with the following code: connect(this, SIGNAL(cellChanged(int, int)), this,
I have the following setup: A subclass of UISplitViewController that creates the master and
I have the following code in my UIViewController subclass, however the willAnimateROtationToInterface is never
I have the following code in a UIViewController subclass: MyViewController *viewController = [[MyViewController alloc]
I have the following code in a UIView subclass that will move it off
Let's say I have the following headers: @interface SuperClass : NSObject @interface SubClass :
I have the following class subclass of FilterInputStream with only one method overrided. However
I have following code function Model(onChanged) { this.array = new Array(); this.onChanged = onChanged;

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.