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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:36:03+00:00 2026-06-17T00:36:03+00:00

I am using jquery accordion. I have inserted a table inside it. In that

  • 0

I am using jquery accordion. I have inserted a table inside it. In that table there are two columns. 1st column will show an svg element and 2nd one will show text. I have binded the text data by using knockoutjs and it works fine. but how can i bind an svg element with 1st column. I want to bind svg element by d3js preferably but any other way will also be appreciated

<table id="AccordionTable">
    <tbody data-bind="foreach:Items">
        <tr>
            <td data-bind="I Want to bind here an svg element dynamically"></td>
            <td data-bind="text:Name" style="padding-left: 15px"></td>
        </tr>
    </tbody>
</table>
  • 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-17T00:36:04+00:00Added an answer on June 17, 2026 at 12:36 am

    You want to use custom binding. I have done something similar using Raphael.js with Knockout

    <td data-bind="createSvg: parameter"></td>
    
    ko.bindingHandlers.createSvg = {
    init: function (element, valueAccessor, allBindingsAccessor, viewModel, bindingContext)
    {
        var options =
            {
                strokeWidth: 5,
                boxBackgroundColour: $('.navbar-inner').css('background-color'),
                positiveFeed: '#00bb00',
                negativeFeed: '#bb0000'
            };
        var substation = new Substation(element, options);
        viewModel.Substation = substation;
    },
    update: function (element, valueAccessor, allBindingsAccessor, viewModel, bindingContext)
    {
        ko.utils.unwrapObservable(viewModel.LastUpdated);
        if ($(element).is(':visible'))
        {
            var substation = viewModel.Substation;
            if (viewModel.RtuUserData)
            {
                substation.set(element, viewModel);
            }
        }
    }
    

    };

    The init method is called once, to create it, and then the update method is called every time the LastUpdated property on my view model is updated.

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

Sidebar

Related Questions

I am using Jquery ui accordion , in that i have a text box
Hi I am using jQuery UI themes and Accordion plugin. I have two html
I have an accordion JQuery UI control that shows two different sets of fields.
I have links that are inside a jquery accordion on a page. When a
I have a simple accordion menu using jQuery. When I click a link inside
I am using JQuery Accordion. I have this page here: http://www.hauppauge.com/site/support/support_colossus.html#tabs-6 What happens is
I have built this accordion using the jquery ui accordion plugin, I sort of
where I am using Jquery UI. I have an accordion menu, which has multiple
I am using jQuery UI plugin for Accordion And i noticed that On clicking
I have a standard jquery ui accordion and I load content into it using

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.