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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:46:08+00:00 2026-06-02T18:46:08+00:00

When extending the functionality of Knockout, when is it appropriate to use custom bindings

  • 0

When extending the functionality of Knockout, when is it appropriate to use custom bindings vs extenders vs custom functions using “fn”? Are there performance implications when choosing one over another?

  • 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-02T18:46:10+00:00Added an answer on June 2, 2026 at 6:46 pm

    You would generally want to choose custom bindings when the functionality that you are trying to accomplish involves both the UI and your data, so where you need access to an element and usually some data to control what to do with the element.

    There is really not a big difference between extenders and adding to .fn at this point. Extenders were added to KO slightly before shared functions were available via .fn.

    It is usually not an issue, but extenders will just work for both observables and computed observables. Using .fn you would need to add functions to ko.subscribable.fn for it to be available to both. However, in some cases your functionality may only apply to one or the other, so using ko.observable.fn and ko.computed.fn would be a better choice.

    I find extending .fn to be the cleanest syntax. If you are sure to return this or a new type if you are wrapping it, then you can support chaining easily. Extenders are a little more explicit and ensure that the API surface areas of the types remain lean (for what that is worth).

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

Sidebar

Related Questions

I've been playing around with JavaScript extending its functionality but have noticed some behaviour
I'm extending ListPreference to add functionality to change the preference's summary when it's selected
If you are extending UIComponent and you add a Label component to your custom
I am extending the Visual Studio 2003 debugger using autoexp.dat and a DLL to
Does anyone know of any tools for extending the functionality of Sharepoint's existing version
I am creating a custom StyleLabel by extending the UIView, which provides a link
I'm extending the functionality of a class with a subclass, and I'm doing some
I've got a custom module extending the customer account section. I've added a new
Using jQuery's flot, there's a way to allow items to be selected by hovering
I'm extending the functionality of a semaphore. I ran into a roadblock when I

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.