Git Product home page Git Product logo

Comments (4)

cstefanache avatar cstefanache commented on August 14, 2024

This is a duplicate of Issue 23 - Still it will be kept as unclosed and milestone set to 0.5. Keeping unclosed for more suggestions

from angular2-img-cropper.

mattes42 avatar mattes42 commented on August 14, 2024

Isn't #23 about styling the file input button? I thought of positioning it. Consider this example, where one could require to place the input button somewhere else. I introduced the dummy directive "img-cropper-fileinput" as a placeholder for the file input button. The img-cropper directive would render only the canvas.

<div class="croppercanvas">
<img-cropper ...> </img-cropper>
</div>
....
<div class="myactionbuttons">
<img-cropper-fileinput></img-cropper-fileinput>
<button> Delete Image </button>
</div>

In the current implementation the file input button would be stuck next to the canvas. Or am I missing something?

from angular2-img-cropper.

cstefanache avatar cstefanache commented on August 14, 2024

You are absolutely correct.
This is the reason why I did not closed the issue (but marked it as duplicate - so I can have the refference) - your example extends issue no. 23 functionality. At one coment there is a suggestion to use transclusion.

I am planning to finish this over weekend.

from angular2-img-cropper.

cstefanache avatar cstefanache commented on August 14, 2024

Hello,

I managed to update the code in order to support external input button. This is the result (ignore the styling - just wanted to make it fancy)

image

I have added noFileInput attribute to cropperSettings object in order to hide the img cropper component internal file input. I will push and update the documentation asap

from angular2-img-cropper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.