Giter Site home page Giter Site logo

Comments (7)

MaatwebsiteSupport avatar MaatwebsiteSupport commented on May 3, 2024

Hey

You can use

->setMergeColumn(array(
    'columns' => array('A','B','C','D'),
    'rows' => array(
        array(2,3),
        array(5,11),
    )
));

If you are using loadView() you can use rowspans and colspans in your view file table.

from laravel-excel.

thearabbit avatar thearabbit commented on May 3, 2024

Dear,
I don't want to merge column, I want to set size of column or row in excel.

from laravel-excel.

MaatwebsiteSupport avatar MaatwebsiteSupport commented on May 3, 2024

Okay, column and row width are something else than cell width.

There's no official support for setting column/row width inside the package, but PHPExcel offers this functionality:

->getActiveSheet()->getColumnDimension('A')->setWidth(0.54);

I will have a look if I can support a shorter syntax in v0.4.0

from laravel-excel.

thearabbit avatar thearabbit commented on May 3, 2024

Thanks, could you example for this?
If I want to change column with in the view table, what do?

from laravel-excel.

MaatwebsiteSupport avatar MaatwebsiteSupport commented on May 3, 2024

In v0.3.x it will probably not work with view files, because of the auto column sizing: the columns will be automatically scalled based on their contents.
Will see what I can do about that in v0.4.0

from laravel-excel.

thearabbit avatar thearabbit commented on May 3, 2024

Thanks

from laravel-excel.

moschel26 avatar moschel26 commented on May 3, 2024

@MaatwebsiteSupport Maybe you can help me. Look at this : #2230

from laravel-excel.

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.